Latest changes from Harvester master - a537c1ae38eb7030542ac371f24ae3336cd9d422

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia
2024-10-23 17:01:40 +02:00
parent 2ca86930ad
commit 118aaf16b7
35 changed files with 1484 additions and 93 deletions
@@ -0,0 +1,32 @@
<script>
import cronstrue from 'cronstrue';
export default {
props: {
value: {
type: String,
default: ''
},
},
computed: {
cronTooltipHint() {
let cronHint = '';
try {
cronHint = cronstrue.toString(this.value, { verbose: true });
} catch (e) {
cronHint = this.t('generic.invalidCron');
}
return cronHint || this.value.spec.cron;
}
}
};
</script>
<template>
<span v-clean-tooltip="cronTooltipHint">
{{ value }}
</span>
</template>