Skip to content

Commit

Permalink
fix: Job History search (#1535)
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <[email protected]>
  • Loading branch information
pedrolamas authored Nov 18, 2024
1 parent 405b1b1 commit fe30cd2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
10 changes: 4 additions & 6 deletions src/components/widgets/history/JobHistory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class="ms-1 my-1"
>
<v-text-field
v-model="searchModel"
v-model="search"
outlined
dense
single-line
Expand All @@ -32,7 +32,7 @@
:items-per-page="15"
:item-class="getRowClasses"
single-expand
:search="searchModel"
:search="search"
:expanded="expanded"
mobile-breakpoint="0"
item-key="job_id"
Expand Down Expand Up @@ -189,7 +189,7 @@
</template>

<script lang="ts">
import { Component, Mixins, PropSync } from 'vue-property-decorator'
import { Component, Mixins } from 'vue-property-decorator'
import JobHistoryItemStatus from './JobHistoryItemStatus.vue'
import FilesMixin from '@/mixins/files'
import getFilePaths from '@/util/get-file-paths'
Expand All @@ -204,9 +204,7 @@ import type { AppTableHeader } from '@/types'
})
export default class JobHistory extends Mixins(FilesMixin) {
expanded: HistoryItem[] = []
@PropSync('search', { type: String, default: '' })
searchModel!: string
search = ''
get headers (): AppTableHeader[] {
const headers = [
Expand Down
7 changes: 1 addition & 6 deletions src/components/widgets/stats/PrinterStatsCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,9 @@

<script lang="ts">
import { Component, Prop, Vue } from 'vue-property-decorator'
import JobHistory from '@/components/widgets/history/JobHistory.vue'
import { SocketActions } from '@/api/socketActions'
@Component({
components: {
JobHistory
}
})
@Component({})
export default class PrinterStatsCard extends Vue {
@Prop({ type: Boolean })
readonly menuCollapsed?: boolean
Expand Down
7 changes: 1 addition & 6 deletions src/components/widgets/system/DiskUsageCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,8 @@

<script lang="ts">
import { Component, Vue } from 'vue-property-decorator'
import JobHistory from '@/components/widgets/history/JobHistory.vue'
@Component({
components: {
JobHistory
}
})
@Component({})
export default class PrinterStatsCard extends Vue {
get sdInfo () {
const info = this.$store.getters['server/getSystemInfo']
Expand Down

0 comments on commit fe30cd2

Please sign in to comment.