diff --git a/src/client/app/common/views/components/error.vue b/src/client/app/common/views/components/error.vue new file mode 100644 index 0000000000..7381cf5376 --- /dev/null +++ b/src/client/app/common/views/components/error.vue @@ -0,0 +1,19 @@ + + + diff --git a/src/client/app/common/views/components/index.ts b/src/client/app/common/views/components/index.ts index 54880e3c25..33216e459d 100644 --- a/src/client/app/common/views/components/index.ts +++ b/src/client/app/common/views/components/index.ts @@ -1,5 +1,6 @@ import Vue from 'vue'; +import error from './error.vue'; import apiSettings from './api-settings.vue'; import driveSettings from './drive-settings.vue'; import profileEditor from './profile-editor.vue'; @@ -49,6 +50,7 @@ import uiInfo from './ui/info.vue'; import formButton from './ui/form/button.vue'; import formRadio from './ui/form/radio.vue'; +Vue.component('mk-error', error); Vue.component('mk-api-settings', apiSettings); Vue.component('mk-drive-settings', driveSettings); Vue.component('mk-profile-editor', profileEditor); diff --git a/src/client/app/desktop/views/components/notes.vue b/src/client/app/desktop/views/components/notes.vue index 54299f9335..37ce2c9dd7 100644 --- a/src/client/app/desktop/views/components/notes.vue +++ b/src/client/app/desktop/views/components/notes.vue @@ -4,10 +4,7 @@ -
-

%fa:exclamation-triangle% %i18n:common.error.title%

- %i18n:common.error.retry% -
+
-
-

%fa:exclamation-triangle% %i18n:common.error.title%

- %i18n:common.error.retry% -
+ @@ -221,13 +218,6 @@ export default Vue.extend({ > * transition transform .3s ease, opacity .3s ease - > .error - max-width 300px - margin 0 auto - padding 16px - text-align center - color var(--text) - > .placeholder padding 16px opacity 0.3