Add support for Buefy 0.9.x
or: add hacks to continue supporting Buefy 0.8.x ..depending on your perspective
This commit is contained in:
parent
7ccd9ad896
commit
6fbc79fe5e
17 changed files with 753 additions and 119 deletions
|
@ -103,36 +103,80 @@
|
|||
|
||||
<b-table :data="filteredProfilesData"
|
||||
:row-class="(row, i) => row.enabled ? null : 'has-background-warning'">
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
<b-table-column field="key" label="Watcher Key">
|
||||
% endif
|
||||
<b-table-column field="key"
|
||||
label="Watcher Key"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column field="watcher_spec" label="Watcher Spec">
|
||||
<b-table-column field="watcher_spec"
|
||||
label="Watcher Spec"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.watcher_spec }}
|
||||
</b-table-column>
|
||||
<b-table-column field="watcher_dbkey" label="DB Key">
|
||||
<b-table-column field="watcher_dbkey"
|
||||
label="DB Key"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.watcher_dbkey }}
|
||||
</b-table-column>
|
||||
<b-table-column field="watcher_delay" label="Loop Delay">
|
||||
<b-table-column field="watcher_delay"
|
||||
label="Loop Delay"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.watcher_delay }} sec
|
||||
</b-table-column>
|
||||
<b-table-column field="watcher_retry_attempts" label="Attempts / Delay">
|
||||
<b-table-column field="watcher_retry_attempts"
|
||||
label="Attempts / Delay"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.watcher_retry_attempts }} / {{ props.row.watcher_retry_delay }} sec
|
||||
</b-table-column>
|
||||
<b-table-column field="watcher_default_runas" label="Default Runas">
|
||||
<b-table-column field="watcher_default_runas"
|
||||
label="Default Runas"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.watcher_default_runas }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Consumers">
|
||||
<b-table-column label="Consumers"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ consumerShortList(props.row) }}
|
||||
</b-table-column>
|
||||
## <b-table-column field="notes" label="Notes">
|
||||
## TODO
|
||||
## ## {{ props.row.notes }}
|
||||
## </b-table-column>
|
||||
<b-table-column field="enabled" label="Enabled">
|
||||
<b-table-column field="enabled"
|
||||
label="Enabled"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.enabled ? "Yes" : "No" }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
v-if="useProfileSettings">
|
||||
<a href="#"
|
||||
class="grid-action"
|
||||
|
@ -148,7 +192,9 @@
|
|||
Delete
|
||||
</a>
|
||||
</b-table-column>
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
<template slot="empty">
|
||||
<section class="section">
|
||||
<div class="content has-text-grey has-text-centered">
|
||||
|
@ -281,14 +327,30 @@
|
|||
|
||||
<b-table :data="editingProfilePendingWatcherKwargs"
|
||||
style="margin-left: 1rem;">
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
<b-table-column field="key" label="Key">
|
||||
% endif
|
||||
<b-table-column field="key"
|
||||
label="Key"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column field="value" label="Value">
|
||||
<b-table-column field="value"
|
||||
label="Value"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.value }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions">
|
||||
<b-table-column label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<a href="#"
|
||||
@click.prevent="editProfileWatcherKwarg(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
|
@ -302,7 +364,9 @@
|
|||
Delete
|
||||
</a>
|
||||
</b-table-column>
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
<template slot="empty">
|
||||
<section class="section">
|
||||
<div class="content has-text-grey has-text-centered">
|
||||
|
@ -336,14 +400,29 @@
|
|||
<b-table :data="editingProfilePendingConsumers"
|
||||
v-if="!editingProfileWatcherConsumesSelf"
|
||||
:row-class="(row, i) => row.enabled ? null : 'has-background-warning'">
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
<b-table-column field="key" label="Consumer">
|
||||
% endif
|
||||
<b-table-column field="key"
|
||||
label="Consumer"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column style="white-space: nowrap;">
|
||||
<b-table-column style="white-space: nowrap;"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.consumer_delay }} / {{ props.row.consumer_retry_attempts }} / {{ props.row.consumer_retry_delay }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions">
|
||||
<b-table-column label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<a href="#"
|
||||
class="grid-action"
|
||||
@click.prevent="editProfileConsumer(props.row)">
|
||||
|
@ -358,7 +437,9 @@
|
|||
Delete
|
||||
</a>
|
||||
</b-table-column>
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
<template slot="empty">
|
||||
<section class="section">
|
||||
<div class="content has-text-grey has-text-centered">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue