diff --git a/src/components/dialogs/SpoolmanChangeSpoolDialog.vue b/src/components/dialogs/SpoolmanChangeSpoolDialog.vue index 8c6254dd9..14206b70a 100644 --- a/src/components/dialogs/SpoolmanChangeSpoolDialog.vue +++ b/src/components/dialogs/SpoolmanChangeSpoolDialog.vue @@ -52,7 +52,11 @@ @@ -87,6 +91,15 @@ export default class SpoolmanChangeSpoolDialog extends Mixins(BaseMixin) { return this.$store.state.server.spoolman.spools ?? [] } + get max_spool_id_digits(): number { + const max_id = this.$store.state.server.spoolman.spools.reduce( + (x: number, s: ServerSpoolmanStateSpool) => Math.max(x, s.id), + 0 + ) + + return max_id.toString().length + } + get headers() { return [ { diff --git a/src/components/dialogs/SpoolmanChangeSpoolDialogRow.vue b/src/components/dialogs/SpoolmanChangeSpoolDialogRow.vue index c02fb14ff..bd6a68631 100644 --- a/src/components/dialogs/SpoolmanChangeSpoolDialogRow.vue +++ b/src/components/dialogs/SpoolmanChangeSpoolDialogRow.vue @@ -3,8 +3,16 @@ + - {{ vendor }} - {{ name }} + + +
#{{ id }} | {{ vendor }}
+ + {{ name }} + +
+