chore: lint

This commit is contained in:
Zack Spear
2023-07-24 16:53:51 -07:00
committed by Zack Spear
parent d9b16e57b4
commit 5917109f47
2 changed files with 10 additions and 8 deletions

View File

@@ -19,6 +19,7 @@ module.exports = {
'@typescript-eslint/no-unused-vars': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'max-len': 'off',
'vue/multi-word-component-names': 'off',
'vue/v-on-event-hyphenation': 'off'
'vue/v-on-event-hyphenation': 'off',
'vue/no-v-html': 'off',
}
};

View File

@@ -11,16 +11,16 @@ const { authAction, stateData } = storeToRefs(serverStore);
// @todo use callback url
const stateDataErrorAction = computed(() => {
return {
click: () => { console.debug('accountServerPayload') },
click: () => { console.debug('accountServerPayload'); },
external: true,
icon: ExclamationTriangleIcon,
name: 'accountServer',
text: 'Fix Error',
}
};
});
const button = computed(() => {
if (stateData.value.error) return stateDataErrorAction.value;
if (stateData.value.error) { return stateDataErrorAction.value; }
return authAction.value;
});
</script>
@@ -29,15 +29,16 @@ const button = computed(() => {
<div class="whitespace-normal flex flex-col gap-y-16px max-w-3xl">
<span v-if="stateData.error" class="text-unraid-red font-semibold leading-8">
{{ stateData.heading }}
<br />
<span v-html="stateData.message"></span>
<br>
<span v-html="stateData.message" />
</span>
<span>
<BrandButton
v-if="button"
@click="button.click()"
:icon="button.icon"
:text="button.text" />
:text="button.text"
@click="button.click()"
/>
</span>
</div>
</template>