From b73165913546516f9ca45cad24b887917b8a2087 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 26 Aug 2018 14:11:18 -0700 Subject: [PATCH] Finish up deletion logic --- .../components/database/CreateDatabaseModal.vue | 12 ++++++++++-- .../scripts/components/server/subpages/Databases.vue | 4 +--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/resources/assets/scripts/components/server/components/database/CreateDatabaseModal.vue b/resources/assets/scripts/components/server/components/database/CreateDatabaseModal.vue index 110726963..35cff9478 100644 --- a/resources/assets/scripts/components/server/components/database/CreateDatabaseModal.vue +++ b/resources/assets/scripts/components/server/components/database/CreateDatabaseModal.vue @@ -23,9 +23,14 @@
+ > +   + + Create + +
@@ -40,6 +45,7 @@ data: function () { return { loading: false, + showSpinner: false, database: '', remote: '%', errorMessage: '', @@ -54,6 +60,7 @@ methods: { submit: function () { + this.showSpinner = true; this.errorMessage = ''; this.loading = true; @@ -73,6 +80,7 @@ console.error('A network error was encountered while processing this request.', err.response); }).then(() => { this.loading = false; + this.showSpinner = false; }) } } diff --git a/resources/assets/scripts/components/server/subpages/Databases.vue b/resources/assets/scripts/components/server/subpages/Databases.vue index c1ecef665..1425c77c0 100644 --- a/resources/assets/scripts/components/server/subpages/Databases.vue +++ b/resources/assets/scripts/components/server/subpages/Databases.vue @@ -4,7 +4,7 @@
-
+
@@ -92,8 +92,6 @@ * is closed with a successful callback. */ handleModalCallback: function (object) { - console.log('handle', object); - const data = object; data.password = data.relationships.password.attributes.password; data.showPassword = false;