diff --git a/frontend/src/styles/common.scss b/frontend/src/styles/common.scss
index 4d989c76b..4437b7ed8 100644
--- a/frontend/src/styles/common.scss
+++ b/frontend/src/styles/common.scss
@@ -179,9 +179,12 @@
top: 220px;
left: 45%;
transform: translate(-50%, -50%);
- width: 300px;
+ width: 400px;
text-align: center;
font-size: 14px;
+ .bt {
+ margin-top: -2px;
+ }
}
.table-button {
diff --git a/frontend/src/views/container/compose/index.vue b/frontend/src/views/container/compose/index.vue
index 9cde545fd..18e0751a5 100644
--- a/frontend/src/views/container/compose/index.vue
+++ b/frontend/src/views/container/compose/index.vue
@@ -3,20 +3,13 @@
-
- {{ $t('container.serviceUnavailable') }}
-
- 【 {{ $t('container.setting') }} 】
-
- {{ $t('container.startIn') }}
+
+ {{ $t('container.serviceUnavailable') }}
+ 【 {{ $t('container.setting') }} 】
+ {{ $t('container.startIn') }}
-
+
@@ -111,13 +104,21 @@ const paginationConfig = reactive({
});
const searchName = ref();
-const dockerStatus = ref();
+const dockerStatus = ref('Running');
const loadStatus = async () => {
- const res = await loadDockerStatus();
- dockerStatus.value = res.data;
- if (dockerStatus.value === 'Running') {
- search();
- }
+ loading.value = true;
+ await loadDockerStatus()
+ .then((res) => {
+ loading.value = false;
+ dockerStatus.value = res.data;
+ if (dockerStatus.value === 'Running') {
+ search();
+ }
+ })
+ .catch(() => {
+ dockerStatus.value = 'Failed';
+ loading.value = false;
+ });
};
const goSetting = async () => {
router.push({ name: 'ContainerSetting' });
diff --git a/frontend/src/views/container/container/index.vue b/frontend/src/views/container/container/index.vue
index af486ff91..8cbb060f1 100644
--- a/frontend/src/views/container/container/index.vue
+++ b/frontend/src/views/container/container/index.vue
@@ -1,17 +1,11 @@
-
-
- {{ $t('container.serviceUnavailable') }}
-
- 【 {{ $t('container.setting') }} 】
-
- {{ $t('container.startIn') }}
+
+
+ {{ $t('container.serviceUnavailable') }}
+ 【 {{ $t('container.setting') }} 】
+ {{ $t('container.startIn') }}
-
+
@@ -141,13 +135,21 @@ const paginationConfig = reactive({
});
const searchName = ref();
-const dockerStatus = ref();
+const dockerStatus = ref('Running');
const loadStatus = async () => {
- const res = await loadDockerStatus();
- dockerStatus.value = res.data;
- if (dockerStatus.value === 'Running') {
- search();
- }
+ loading.value = true;
+ await loadDockerStatus()
+ .then((res) => {
+ loading.value = false;
+ dockerStatus.value = res.data;
+ if (dockerStatus.value === 'Running') {
+ search();
+ }
+ })
+ .catch(() => {
+ dockerStatus.value = 'Failed';
+ loading.value = false;
+ });
};
const goSetting = async () => {
router.push({ name: 'ContainerSetting' });
diff --git a/frontend/src/views/container/image/index.vue b/frontend/src/views/container/image/index.vue
index 42d9af89c..3223b64b5 100644
--- a/frontend/src/views/container/image/index.vue
+++ b/frontend/src/views/container/image/index.vue
@@ -1,14 +1,12 @@
-
- {{ $t('container.serviceUnavailable') }}
-
- 【 {{ $t('container.setting') }} 】
-
- {{ $t('container.startIn') }}
+
+ {{ $t('container.serviceUnavailable') }}
+ 【 {{ $t('container.setting') }} 】
+ {{ $t('container.startIn') }}
-
+
@@ -110,14 +108,22 @@ const paginationConfig = reactive({
});
const searchName = ref();
-const dockerStatus = ref();
+const dockerStatus = ref('Running');
const loadStatus = async () => {
- const res = await loadDockerStatus();
- dockerStatus.value = res.data;
- if (dockerStatus.value === 'Running') {
- search();
- loadRepos();
- }
+ loading.value = true;
+ await loadDockerStatus()
+ .then((res) => {
+ loading.value = false;
+ dockerStatus.value = res.data;
+ if (dockerStatus.value === 'Running') {
+ search();
+ loadRepos();
+ }
+ })
+ .catch(() => {
+ dockerStatus.value = 'Failed';
+ loading.value = false;
+ });
};
const goSetting = async () => {
router.push({ name: 'ContainerSetting' });
diff --git a/frontend/src/views/container/network/index.vue b/frontend/src/views/container/network/index.vue
index aee8250a7..1e8af2b6a 100644
--- a/frontend/src/views/container/network/index.vue
+++ b/frontend/src/views/container/network/index.vue
@@ -1,18 +1,12 @@
-
-
- {{ $t('container.serviceUnavailable') }}
-
- 【 {{ $t('container.setting') }} 】
-
- {{ $t('container.startIn') }}
+
+
+ {{ $t('container.serviceUnavailable') }}
+ 【 {{ $t('container.setting') }} 】
+ {{ $t('container.startIn') }}
-
+
@@ -124,13 +118,21 @@ const paginationConfig = reactive({
});
const searchName = ref();
-const dockerStatus = ref();
+const dockerStatus = ref('Running');
const loadStatus = async () => {
- const res = await loadDockerStatus();
- dockerStatus.value = res.data;
- if (dockerStatus.value === 'Running') {
- search();
- }
+ loading.value = true;
+ await loadDockerStatus()
+ .then((res) => {
+ loading.value = false;
+ dockerStatus.value = res.data;
+ if (dockerStatus.value === 'Running') {
+ search();
+ }
+ })
+ .catch(() => {
+ dockerStatus.value = 'Failed';
+ loading.value = false;
+ });
};
const goSetting = async () => {
router.push({ name: 'ContainerSetting' });
diff --git a/frontend/src/views/container/repo/index.vue b/frontend/src/views/container/repo/index.vue
index 3c59293f6..f4afb97b5 100644
--- a/frontend/src/views/container/repo/index.vue
+++ b/frontend/src/views/container/repo/index.vue
@@ -1,14 +1,12 @@
-
-
- {{ $t('container.serviceUnavailable') }}
-
- 【 {{ $t('container.setting') }} 】
-
- {{ $t('container.startIn') }}
+
+
+ {{ $t('container.serviceUnavailable') }}
+ 【 {{ $t('container.setting') }} 】
+ {{ $t('container.startIn') }}
-
+
@@ -99,13 +97,21 @@ const paginationConfig = reactive({
});
const searchName = ref();
-const dockerStatus = ref();
+const dockerStatus = ref('Running');
const loadStatus = async () => {
- const res = await loadDockerStatus();
- dockerStatus.value = res.data;
- if (dockerStatus.value === 'Running') {
- search();
- }
+ loading.value = true;
+ await loadDockerStatus()
+ .then((res) => {
+ loading.value = false;
+ dockerStatus.value = res.data;
+ if (dockerStatus.value === 'Running') {
+ search();
+ }
+ })
+ .catch(() => {
+ dockerStatus.value = 'Failed';
+ loading.value = false;
+ });
};
const goSetting = async () => {
router.push({ name: 'ContainerSetting' });
diff --git a/frontend/src/views/container/template/index.vue b/frontend/src/views/container/template/index.vue
index 3a89ca1b6..8b4d8e6b8 100644
--- a/frontend/src/views/container/template/index.vue
+++ b/frontend/src/views/container/template/index.vue
@@ -1,18 +1,12 @@
-
-
- {{ $t('container.serviceUnavailable') }}
-
- 【 {{ $t('container.setting') }} 】
-
- {{ $t('container.startIn') }}
+
+
+ {{ $t('container.serviceUnavailable') }}
+ 【 {{ $t('container.setting') }} 】
+ {{ $t('container.startIn') }}
-
+
@@ -96,13 +90,21 @@ const searchName = ref();
const detailRef = ref();
-const dockerStatus = ref();
+const dockerStatus = ref('Running');
const loadStatus = async () => {
- const res = await loadDockerStatus();
- dockerStatus.value = res.data;
- if (dockerStatus.value === 'Running') {
- search();
- }
+ loading.value = true;
+ await loadDockerStatus()
+ .then((res) => {
+ loading.value = false;
+ dockerStatus.value = res.data;
+ if (dockerStatus.value === 'Running') {
+ search();
+ }
+ })
+ .catch(() => {
+ dockerStatus.value = 'Failed';
+ loading.value = false;
+ });
};
const goSetting = async () => {
router.push({ name: 'ContainerSetting' });
diff --git a/frontend/src/views/container/volume/index.vue b/frontend/src/views/container/volume/index.vue
index 9ff7cb48d..db2fbde5e 100644
--- a/frontend/src/views/container/volume/index.vue
+++ b/frontend/src/views/container/volume/index.vue
@@ -1,14 +1,12 @@
-
-
- {{ $t('container.serviceUnavailable') }}
-
- 【 {{ $t('container.setting') }} 】
-
- {{ $t('container.startIn') }}
+
+
+ {{ $t('container.serviceUnavailable') }}
+ 【 {{ $t('container.setting') }} 】
+ {{ $t('container.startIn') }}
-
+
@@ -104,13 +102,21 @@ const paginationConfig = reactive({
});
const searchName = ref();
-const dockerStatus = ref();
+const dockerStatus = ref('Running');
const loadStatus = async () => {
- const res = await loadDockerStatus();
- dockerStatus.value = res.data;
- if (dockerStatus.value === 'Running') {
- search();
- }
+ loading.value = true;
+ await loadDockerStatus()
+ .then((res) => {
+ loading.value = false;
+ dockerStatus.value = res.data;
+ if (dockerStatus.value === 'Running') {
+ search();
+ }
+ })
+ .catch(() => {
+ dockerStatus.value = 'Failed';
+ loading.value = false;
+ });
};
const goSetting = async () => {
router.push({ name: 'ContainerSetting' });
diff --git a/frontend/src/views/database/mysql/index.vue b/frontend/src/views/database/mysql/index.vue
index 96b2843cd..c22665330 100644
--- a/frontend/src/views/database/mysql/index.vue
+++ b/frontend/src/views/database/mysql/index.vue
@@ -112,7 +112,7 @@
v-if="mysqlStatus != 'Running' && !isOnSetting && mysqlIsExist && !loading"
class="mask-prompt"
>
- {{ $t('commons.service.serviceNotStarted', ['MySQL']) }}
+ {{ $t('commons.service.serviceNotStarted', ['MySQL']) }}
diff --git a/frontend/src/views/database/redis/index.vue b/frontend/src/views/database/redis/index.vue
index 41c56c8b6..e9ab98cff 100644
--- a/frontend/src/views/database/redis/index.vue
+++ b/frontend/src/views/database/redis/index.vue
@@ -24,7 +24,7 @@
- {{ $t('commons.service.serviceNotStarted', ['Redis']) }}
+ {{ $t('commons.service.serviceNotStarted', ['Redis']) }}