Skip to content

Commit

Permalink
fix: multitude of fixes for c-admin-audit-log-page
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Dec 7, 2023
1 parent 2a3772c commit 3bf80ce
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
1 change: 1 addition & 0 deletions playground/Coalesce.Web.Vue2/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const components: any = Vue.options.components;
components.VInput.options.props.dense.default = true
components.VTextField.options.props.dense.default = true
components.VTextField.options.props.outlined.default = true
components.VTextField.options.props.persistentPlaceholder.default = true;

Vue.config.productionTip = false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,46 +41,51 @@
v-model="listVm.$params.filter.type"
label="Type Name"
style="width: 150px"
@clear="$nextTick(() => (listVm.$params.filter.type = ''))"
@click:clear="$nextTick(() => (listVm.$params.filter.type = ''))"
flat
solo-inverted
hide-details
single-line
clearable
:persistent-placeholder="false"
/>

<v-text-field
v-model="listVm.$params.filter.keyValue"
label="Key Value"
style="width: 150px"
@clear="$nextTick(() => (listVm.$params.filter.keyValue = ''))"
@click:clear="
$nextTick(() => (listVm.$params.filter.keyValue = ''))
"
flat
solo-inverted
hide-details
single-line
clearable
:persistent-placeholder="false"
/>

<c-input
v-model="listVm.$params.filter.state"
:for="listVm.$metadata.props.state"
@clear="$nextTick(() => (listVm.$params.filter.state = ''))"
@click:clear="$nextTick(() => (listVm.$params.filter.state = ''))"
style="min-width: 210px; max-width: 210px"
flat
solo-inverted
hide-details
single-line
clearable
:persistent-placeholder="false"
/>

<c-select
v-if="userPropMeta"
:for="userPropMeta"
v-model:key-value="
:key-value.sync="
listVm.$params.filter[userPropMeta.foreignKey.name]
"
style="width: 240px"
@clear="
@click:clear="
$nextTick(
() =>
(listVm.$params.filter[userPropMeta.foreignKey.name] = '')
Expand All @@ -91,6 +96,7 @@
hide-details
single-line
clearable
:persistent-placeholder="false"
/>
</div>

Expand Down Expand Up @@ -319,6 +325,7 @@ export default defineComponent({
);
}
listVm = new ListViewModel.typeLookup![props.type]() as any;
listVm.$load.setConcurrency("cancel");
}
const userPropMeta = computed(() => {
Expand Down Expand Up @@ -408,7 +415,7 @@ export default defineComponent({
useBindToQueryString(listVm.$params, "pageSize", "pageSize", (p) => +p);
listVm.$load();
listVm.$useAutoLoad({ wait: 0 });
listVm.$useAutoLoad({ wait: 100 });
const pageTitle = "Audit Logs";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
v-model="list.$params.search"
single-line
clearable
:persistent-placeholder="false"
></v-text-field>

<v-divider class="hidden-xs-only mx-4 my-0" vertical></v-divider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ if (props.list) {
);
}
list = new ListViewModel.typeLookup![props.type]() as any;
list.$load.setConcurrency("cancel");
}
const userPropMeta = computed(() => {
Expand Down Expand Up @@ -395,7 +396,7 @@ if (userPropMeta.value) {
}
list.$load();
list.$useAutoLoad({ wait: 0 });
list.$useAutoLoad({ wait: 100 });
defineExpose({
/** Support for common convention of exposing 'pageTitle' from router-view hosted components. */
Expand Down

0 comments on commit 3bf80ce

Please sign in to comment.