diff options
| author | Henry Jameson <me@hjkos.com> | 2020-01-22 02:44:39 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2020-01-22 02:44:39 +0200 |
| commit | d98e31af458ed42e678072879265267e8148c627 (patch) | |
| tree | 32ce4b25c94427c3332a90a22f9c3cb663ad4308 /src/components/style_switcher/style_switcher.vue | |
| parent | c1e3632f4245800df45c1585ff39c97f5377200b (diff) | |
snapshot/source mismatch case
Diffstat (limited to 'src/components/style_switcher/style_switcher.vue')
| -rw-r--r-- | src/components/style_switcher/style_switcher.vue | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/components/style_switcher/style_switcher.vue b/src/components/style_switcher/style_switcher.vue index 79c2fcd3..793d68f1 100644 --- a/src/components/style_switcher/style_switcher.vue +++ b/src/components/style_switcher/style_switcher.vue @@ -7,7 +7,21 @@ {{ themeWarningHelp }} </div> <div class="buttons"> - <template v-if="themeWarning.noActionsPossible"> + <template v-if="themeWarning.type === 'snapshot_source_mismatch'"> + <button + class="btn" + @click="forceLoad" + > + {{ $t('settings.style.switcher.use_source') }} + </button> + <button + class="btn" + @click="dismissWarning" + > + {{ $t('settings.style.switcher.use_snapshot') }} + </button> + </template> + <template v-else-if="themeWarning.noActionsPossible"> <button class="btn" @click="dismissWarning" @@ -26,7 +40,7 @@ class="btn" @click="dismissWarning" > - {{ $t('settings.style.switcher.use_snapshot') }} + {{ $t('settings.style.switcher.keep_as_is') }} </button> </template> </div> |
