diff --git a/client/package-lock.json b/client/package-lock.json index d227e819..28d0135f 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -1,12 +1,12 @@ { "name": "client", - "version": "0.27.1", + "version": "0.27.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "client", - "version": "0.27.1", + "version": "0.27.2", "dependencies": { "bootstrap": "4.6.2", "bootstrap-vue": "2.23.1", @@ -50,7 +50,7 @@ "jsdom": "^27.4.0", "prettier": "^3.8.3", "sass": "1.99.0", - "vite": "^7.3.1", + "vite": "^7.3.3", "vitest": "^4.1.5" }, "engines": { @@ -6625,9 +6625,9 @@ "license": "MIT" }, "node_modules/vite": { - "version": "7.3.2", - "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.2.tgz", - "integrity": "sha512-Bby3NOsna2jsjfLVOHKes8sGwgl4TT0E6vvpYgnAYDIF/tie7MRaFthmKuHx1NSXjiTueXH3do80FMQgvEktRg==", + "version": "7.3.3", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.3.tgz", + "integrity": "sha512-/4XH147Ui7OGTjg3HbdWe5arnZQSbfuRzdr9Ec7TQi5I7R+ir0Rlc9GIvD4v0XZurELqA035KVXJXpR61xhiTA==", "dev": true, "license": "MIT", "dependencies": { diff --git a/client/package.json b/client/package.json index a55cf15d..8df3c256 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "client", - "version": "0.27.1", + "version": "0.27.2", "description": "DigiScript front end", "author": "DreamTeamProd", "private": true, @@ -68,7 +68,7 @@ "jsdom": "^27.4.0", "prettier": "^3.8.3", "sass": "1.99.0", - "vite": "^7.3.1", + "vite": "^7.3.3", "vitest": "^4.1.5" }, "browserslist": [ diff --git a/client/src/vue_components/show/config/script/ScriptEditor.vue b/client/src/vue_components/show/config/script/ScriptEditor.vue index 9eb7386f..6df5713d 100644 --- a/client/src/vue_components/show/config/script/ScriptEditor.vue +++ b/client/src/vue_components/show/config/script/ScriptEditor.vue @@ -712,18 +712,17 @@ export default { if (!this.IS_CUT_MODE) { if (this.scriptChanges) { this.savingInProgress = true; - this.totalSavePages = Object.keys(this.TMP_SCRIPT).length; + const tmpPageKeys = Object.keys(this.TMP_SCRIPT).map((x) => Number.parseInt(x, 10)); + const maxPage = Math.max(this.currentMaxPage, ...tmpPageKeys, 0); + this.totalSavePages = maxPage; this.curSavePage = 0; this.$bvModal.show('save-script'); - const orderedPages = Object.keys(this.TMP_SCRIPT) - .map((x) => parseInt(x, 10)) - .sort((a, b) => a - b); - - for (const pageNo of orderedPages) { + for (let pageNo = 1; pageNo <= maxPage; pageNo++) { this.curSavePage = pageNo; - // Check whether the page actually has any lines on it, and if not then skip const tmpScriptPage = this.TMP_SCRIPT[pageNo.toString()]; + if (!tmpScriptPage) continue; + // Check whether the page actually has any lines on it, and if not then skip if (tmpScriptPage.length !== 0) { // Check the actual script to see if the page exists or not const actualScriptPage = this.GET_SCRIPT_PAGE(pageNo); diff --git a/electron/package-lock.json b/electron/package-lock.json index d23fe048..8302779e 100644 --- a/electron/package-lock.json +++ b/electron/package-lock.json @@ -1,12 +1,12 @@ { "name": "digiscript-electron", - "version": "0.27.1", + "version": "0.27.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "digiscript-electron", - "version": "0.27.1", + "version": "0.27.2", "license": "GPL-3.0", "dependencies": { "bonjour-service": "^1.3.0", diff --git a/electron/package.json b/electron/package.json index 20e62c12..bcee77a8 100644 --- a/electron/package.json +++ b/electron/package.json @@ -1,6 +1,6 @@ { "name": "digiscript-electron", - "version": "0.27.1", + "version": "0.27.2", "description": "DigiScript Electron Desktop Application", "author": "DreamTeamProd", "license": "GPL-3.0", diff --git a/server/pyproject.toml b/server/pyproject.toml index 4deeeb10..abf5722e 100644 --- a/server/pyproject.toml +++ b/server/pyproject.toml @@ -11,7 +11,7 @@ build-backend = "setuptools.build_meta" [project] name = "digiscript-server" -version = "0.27.1" +version = "0.27.2" description = "DigiScript server - Digital script management for theatrical shows" readme = "../README.md" requires-python = ">=3.13"