Skip to content
Snippets Groups Projects
Commit 5313833d authored by HJ's avatar HJ :fire:
Browse files

lint

parent 7c074b87
No related branches found
No related tags found
No related merge requests found
<template> <template>
<div class="style-switcher"> <div class="style-switcher">
<div class="presets-container"> <div class="presets-container">
<div class="save-load"> <div class="save-load">
<div class="theme-warning" v-if="themeWarning"> <div
<div class="alert warning"> v-if="themeWarning"
{{ themeWarningHelp }} class="theme-warning"
</div> >
<div class="buttons"> <div class="alert warning">
<template v-if="themeWarning.type === 'snapshot_source_mismatch'"> {{ themeWarningHelp }}
<button </div>
class="btn" <div class="buttons">
@click="forceLoad" <template v-if="themeWarning.type === 'snapshot_source_mismatch'">
> <button
{{ $t('settings.style.switcher.use_source') }} class="btn"
</button> @click="forceLoad"
<button >
class="btn" {{ $t('settings.style.switcher.use_source') }}
@click="forceSnapshot" </button>
> <button
{{ $t('settings.style.switcher.use_snapshot') }} class="btn"
</button> @click="forceSnapshot"
</template> >
<template v-else-if="themeWarning.noActionsPossible"> {{ $t('settings.style.switcher.use_snapshot') }}
<button </button>
class="btn" </template>
@click="dismissWarning" <template v-else-if="themeWarning.noActionsPossible">
> <button
{{ $t('general.dismiss') }} class="btn"
</button> @click="dismissWarning"
</template> >
<template v-else> {{ $t('general.dismiss') }}
<button </button>
class="btn" </template>
@click="forceLoad" <template v-else>
> <button
{{ $t('settings.style.switcher.load_theme') }} class="btn"
</button> @click="forceLoad"
<button >
class="btn" {{ $t('settings.style.switcher.load_theme') }}
@click="dismissWarning" </button>
> <button
{{ $t('settings.style.switcher.keep_as_is') }} class="btn"
</button> @click="dismissWarning"
</template> >
{{ $t('settings.style.switcher.keep_as_is') }}
</button>
</template>
</div>
</div> </div>
</div> <ExportImport
<ExportImport :export-object="exportedTheme"
:export-object="exportedTheme" :export-label="$t(&quot;settings.export_theme&quot;)"
:export-label="$t(&quot;settings.export_theme&quot;)" :import-label="$t(&quot;settings.import_theme&quot;)"
:import-label="$t(&quot;settings.import_theme&quot;)" :import-failed-text="$t(&quot;settings.invalid_theme_imported&quot;)"
:import-failed-text="$t(&quot;settings.invalid_theme_imported&quot;)" :on-import="onImport"
:on-import="onImport" :validator="importValidator"
:validator="importValidator" >
> <template slot="before">
<template slot="before"> <div class="presets">
<div class="presets"> {{ $t('settings.presets') }}
{{ $t('settings.presets') }} <label
<label for="preset-switcher"
for="preset-switcher" class="select"
class="select"
> >
<select <select
id="preset-switcher" id="preset-switcher"
v-model="selected" v-model="selected"
class="preset-switcher" class="preset-switcher"
> >
<option <option
v-for="style in availableStyles" v-for="style in availableStyles"
:key="style.name" :key="style.name"
:value="style" :value="style"
:style="{ :style="{
backgroundColor: style[1] || (style.theme || style.source).colors.bg, backgroundColor: style[1] || (style.theme || style.source).colors.bg,
color: style[3] || (style.theme || style.source).colors.text color: style[3] || (style.theme || style.source).colors.text
......
...@@ -86,5 +86,4 @@ describe('Theme Data utility functions', () => { ...@@ -86,5 +86,4 @@ describe('Theme Data utility functions', () => {
expect(out.indexOf('a')).to.be.below(out.indexOf('c')) expect(out.indexOf('a')).to.be.below(out.indexOf('c'))
}) })
}) })
}) })
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment