Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport: Fix creation of multiple projects without reloading page #1046

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix #1025
Signed-off-by: Ralf King <[email protected]>
rkg-mm authored and nscuro committed Oct 9, 2024

Verified

This commit was signed with the committer’s verified signature.
RobinMalfait Robin Malfait
commit 1a682d0262b469fc7fff8ea549a060708be0f59b
4 changes: 3 additions & 1 deletion src/views/portfolio/projects/ProjectCreateProjectModal.vue
Original file line number Diff line number Diff line change
@@ -413,7 +413,9 @@ export default {
});
},
resetValues: function () {
this.project = {};
this.project = {
team: [],
};
this.tag = '';
this.tags = [];
this.selectedParent = null;

Unchanged files with check annotations Beta

ProfileEditModal,
SnapshotModal,
AppSidebar,
AppAside,

Check failure on line 50 in src/containers/DefaultContainer.vue

GitHub Actions / lint

The "AppAside" component has been registered but not used
Breadcrumb,
DefaultHeaderProfileDropdown,

Check failure on line 52 in src/containers/DefaultContainer.vue

GitHub Actions / lint

The "DefaultHeaderProfileDropdown" component has been registered but not used
SidebarForm,
SidebarFooter,
SidebarHeader,
export default {
name: 'DefaultHeader',
components: {
AsideToggler,

Check failure on line 25 in src/containers/DefaultHeader.vue

GitHub Actions / lint

The "AsideToggler" component has been registered but not used
AppHeader,
DefaultHeaderProfileDropdown,
SidebarToggler,
this.isFocused = common.toBoolean(this.autofocus);
this.isRequired = common.toBoolean(this.required);
this.isDisabled = common.toBoolean(this.disabled);
this.readonly = common.toBoolean(this.readonly);

Check failure on line 81 in src/forms/BInputGroupFormDatepicker.vue

GitHub Actions / lint

Unexpected mutation of "readonly" prop
},
computed: {
innerValue: {
<b-form-select
:id="`${id}-input`"
v-model="value"

Check failure on line 15 in src/forms/BInputGroupFormSelect.vue

GitHub Actions / lint

Unexpected mutation of "value" prop
:options="options"
:autofocus="isFocused"
:disabled="disabled"
}
createVueApp();
})
.catch(function (error) {

Check failure on line 65 in src/main.js

GitHub Actions / lint

'error' is defined but never used
console.log(
'Cannot retrieve static/config.json from host. This is expected behavior in development environments.',
);
path: 'project',
props: (route) => ({ uuid: route.query.uuid }),
redirect: (to) => {
let { hash, params, query } = to;

Check failure on line 795 in src/router/index.js

GitHub Actions / lint

'hash' is assigned a value but never used

Check failure on line 795 in src/router/index.js

GitHub Actions / lint

'params' is assigned a value but never used
if (query.uuid) {
let uuid = query.uuid;
return { path: '/projects/' + uuid, query: null };
path: 'component',
props: (route) => ({ uuid: route.query.uuid }),
redirect: (to) => {
let { hash, params, query } = to;

Check failure on line 808 in src/router/index.js

GitHub Actions / lint

'hash' is assigned a value but never used

Check failure on line 808 in src/router/index.js

GitHub Actions / lint

'params' is assigned a value but never used
if (query.uuid) {
let uuid = query.uuid;
return { path: '/components/' + uuid, query: null };