Unverified Commit 829c7459 authored by Nicola Soranzo's avatar Nicola Soranzo
Browse files

Merge branch 'release_24.2' into dev

parents 6e73f6ed 6dcdc9dd
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -44,6 +44,8 @@ interface FilesDialogProps {
    requireWritable?: boolean;
    /** Optional selected item to start browsing from */
    selectedItem?: SelectionItem;
    /** Whether the dialog is visible at the start */
    isOpen?: boolean;
}

const props = withDefaults(defineProps<FilesDialogProps>(), {
@@ -54,6 +56,7 @@ const props = withDefaults(defineProps<FilesDialogProps>(), {
    multiple: false,
    requireWritable: false,
    selectedItem: undefined,
    isOpen: true,
});

const { config, isConfigLoaded } = useConfig();
@@ -66,7 +69,7 @@ const errorMessage = ref<string>();
const filter = ref();
const items = ref<SelectionItem[]>([]);
const itemsProvider = ref<ItemsProvider>();
const modalShow = ref(true);
const modalShow = ref(props.isOpen);
const optionsShow = ref(false);
const undoShow = ref(false);
const hasValue = ref(false);
+10 −1
Original line number Diff line number Diff line
@@ -4,7 +4,12 @@
            <b-button id="select-btn" @click="reset">
                <FontAwesomeIcon icon="folder-open" /> {{ selectText }}
            </b-button>
            <FilesDialog :key="modalKey" mode="directory" :callback="setUrl" :require-writable="true" />
            <FilesDialog
                :key="modalKey"
                mode="directory"
                :callback="setUrl"
                :require-writable="true"
                :is-open="isModalShown" />
        </div>
        <b-breadcrumb v-if="url">
            <b-breadcrumb-item title="Select another folder" class="align-items-center" @click="reset">
@@ -69,6 +74,9 @@ export default {
            return regex.test(this.currentDirectoryName);
        },
    },
    mounted() {
        this.updateURL(true);
    },
    methods: {
        removePath(index) {
            this.pathChunks = this.pathChunks.slice(0, index);
@@ -83,6 +91,7 @@ export default {
        // https://michaelnthiessen.com/force-re-render/
        redrawModal() {
            this.modalKey += 1;
            this.isModalShown = true;
        },
        removeLastPath(event) {
            // check whether the last item is editable
+1 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ classifiers =
    Programming Language :: Python :: 3.10
    Programming Language :: Python :: 3.11
    Programming Language :: Python :: 3.12
    Programming Language :: Python :: 3.13
    Topic :: Software Development
    Topic :: Software Development :: Code Generators
    Topic :: Software Development :: Testing
+1 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ classifiers =
    Programming Language :: Python :: 3.10
    Programming Language :: Python :: 3.11
    Programming Language :: Python :: 3.12
    Programming Language :: Python :: 3.13
    Topic :: Software Development
    Topic :: Software Development :: Code Generators
    Topic :: Software Development :: Testing
+1 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ classifiers =
    Programming Language :: Python :: 3.10
    Programming Language :: Python :: 3.11
    Programming Language :: Python :: 3.12
    Programming Language :: Python :: 3.13
    Topic :: Software Development
    Topic :: Software Development :: Code Generators
    Topic :: Software Development :: Testing
Loading