Skip to content

Commit

Permalink
massage the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
martenson committed Dec 19, 2022
1 parent cb64150 commit 8eb29ec
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions client/src/components/Page/PageDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
<span class="fa fa-eye fa-fw mr-1" />
<span>View</span>
</a>
<a class="dropdown-item dropdown-item-edit" v-if="!readOnly" :href="urlEdit">
<a v-if="!readOnly" class="dropdown-item dropdown-item-edit" :href="urlEdit">
<span class="fa fa-edit fa-fw mr-1" />
<span>Edit Content</span>
</a>
<a class="dropdown-item dropdown-item-edit-attributes" v-if="!readOnly" :href="urlEditAttributes">
<a v-if="!readOnly" class="dropdown-item dropdown-item-edit-attributes" :href="urlEditAttributes">
<span class="fa fa-share-alt fa-fw mr-1" />
<span>Edit Attributes</span>
</a>
<a class="dropdown-item dropdown-item-share" v-if="!readOnly" :href="urlShare">
<a v-if="!readOnly" class="dropdown-item dropdown-item-share" :href="urlShare">
<span class="fa fa-share-alt fa-fw mr-1" />
<span>Share</span>
</a>
<a class="dropdown-item" href="#" v-if="!readOnly" @click.prevent="onDelete">
<a v-if="!readOnly" class="dropdown-item" href="#" @click.prevent="onDelete">
<span class="fa fa-trash fa-fw mr-1" />
<span>Delete</span>
</a>
Expand Down
28 changes: 14 additions & 14 deletions client/src/components/Page/PageList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PageIndexActions :root="root" class="float-right" />
</b-col>
</b-row>
<b-table :fields="fields" v-model="itemsModel" v-bind="indexTableAttrs">
<b-table v-model="itemsModel" :fields="fields" v-bind="indexTableAttrs">
<template v-slot:empty>
<loading-span v-if="loading" message="Loading pages" />
<b-alert v-else id="no-pages" variant="info" show>
Expand All @@ -34,9 +34,9 @@
<Tags
:index="row.index"
:tags="row.item.tags"
:disabled="published"
@input="onTags"
@tag-click="onTagClick"
:disabled="published" />
@tag-click="onTagClick" />
</template>
<template v-slot:cell(published)="row">
<SharingIndicators :object="row.item" @filter="(filter) => appendFilter(filter)" />
Expand All @@ -53,8 +53,8 @@
</template>
</b-table>
<b-pagination
v-model="currentPage"
v-if="rows >= perPage"
v-model="currentPage"
class="gx-pages-grid-pager"
v-bind="paginationAttrs"></b-pagination>
</div>
Expand Down Expand Up @@ -119,14 +119,14 @@ export default {
PageDropdown,
PageUrl,
},
mixins: [paginationMixin, filtersMixin],
props: {
published: {
// Render the published workflows version of this grid.
type: Boolean,
default: true,
},
},
mixins: [paginationMixin, filtersMixin],
data() {
const fields = this.published ? PUBLISHED_FIELDS : PERSONAL_FIELDS;
const implicitFilter = this.published ? "is:published" : null;
Expand All @@ -142,15 +142,6 @@ export default {
implicitFilter: implicitFilter,
};
},
created() {
this.root = getAppRoot();
// this.services = new Services({ root: this.root });
},
watch: {
filter(val) {
this.refresh();
},
},
computed: {
dataProviderParameters() {
const extraParams = { search: this.effectiveFilter };
Expand All @@ -161,6 +152,15 @@ export default {
return extraParams;
},
},
watch: {
filter(val) {
this.refresh();
},
},
created() {
this.root = getAppRoot();
// this.services = new Services({ root: this.root });
},
methods: {
onTags: function (tags, index) {
const workflow = this.itemsModel[index];
Expand Down

0 comments on commit 8eb29ec

Please sign in to comment.