diff --git a/frontend/views/containers/proposals/DistributionDate.vue b/frontend/views/containers/proposals/DistributionDate.vue index 04187ea042..f7062f883d 100644 --- a/frontend/views/containers/proposals/DistributionDate.vue +++ b/frontend/views/containers/proposals/DistributionDate.vue @@ -5,7 +5,6 @@ :disabled='$v.form.$invalid || distributionStarted' :maxSteps='config.steps.length' :currentStep.sync='ephemeral.currentStep' - variant='changeDistributionDate' :shouldImmediateChange='shouldImmediateChangeDistributionDate' @submit='submit' ) diff --git a/frontend/views/containers/proposals/ProposalTemplate.vue b/frontend/views/containers/proposals/ProposalTemplate.vue index fe4bd98c81..2c8ac6fc23 100644 --- a/frontend/views/containers/proposals/ProposalTemplate.vue +++ b/frontend/views/containers/proposals/ProposalTemplate.vue @@ -46,7 +46,7 @@ :class='submitStyleNonProposal' v-if='!isConfirmation && !shouldPropose' @click='submit' - :disabled='disabled' + :disabled='disabled || !isGroupCreator' data-test='submitBtn' ) {{ submitTextNonProposal }} @@ -118,7 +118,7 @@ export default ({ }, variant: { validator (value) { - return ['addMember', 'removeMember', 'changeDistributionDate'].indexOf(value) > -1 + return ['addMember', 'removeMember'].indexOf(value) > -1 } }, shouldImmediateChange: Boolean @@ -137,6 +137,9 @@ export default ({ proposalSettings () { return this.groupProposalSettings() }, + isGroupCreator () { + return this.ourUsername === this.groupSettings.groupCreator + }, isNextStep () { return this.currentStep <= this.maxSteps - 1 }, diff --git a/package-lock.json b/package-lock.json index 468d8bc664..1bcfc74018 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5072,9 +5072,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001468", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001468.tgz", - "integrity": "sha512-zgAo8D5kbOyUcRAgSmgyuvBkjrGk5CGYG5TYgFdpQv+ywcyEpo1LOWoG8YmoflGnh+V+UsNuKYedsoYs0hzV5A==", + "version": "1.0.30001551", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001551.tgz", + "integrity": "sha512-vtBAez47BoGMMzlbYhfXrMV1kvRF2WP/lqiMuDu1Sb4EE4LKEgjopFDSRtZfdVnslNRpOqV/woE+Xgrwj6VQlg==", "dev": true, "funding": [ { @@ -5084,6 +5084,10 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } ] }, @@ -20775,9 +20779,9 @@ } }, "caniuse-lite": { - "version": "1.0.30001468", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001468.tgz", - "integrity": "sha512-zgAo8D5kbOyUcRAgSmgyuvBkjrGk5CGYG5TYgFdpQv+ywcyEpo1LOWoG8YmoflGnh+V+UsNuKYedsoYs0hzV5A==", + "version": "1.0.30001551", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001551.tgz", + "integrity": "sha512-vtBAez47BoGMMzlbYhfXrMV1kvRF2WP/lqiMuDu1Sb4EE4LKEgjopFDSRtZfdVnslNRpOqV/woE+Xgrwj6VQlg==", "dev": true }, "caseless": {