mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-23 18:15:03 +02:00
Cherry Pick of recent changes in qms (#8498)
Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com>
This commit is contained in:
+6
@@ -137,11 +137,16 @@
|
||||
|
||||
$: space = $locationStep.space
|
||||
|
||||
let submitted = false
|
||||
|
||||
async function handleSubmit (): Promise<void> {
|
||||
if ($locationStep.space === undefined || $locationStep.project === undefined) {
|
||||
return
|
||||
}
|
||||
|
||||
if (submitted) return
|
||||
submitted = true
|
||||
|
||||
const newDocId = generateId<ControlledDocument>()
|
||||
const _space = $locationStep.space
|
||||
|
||||
@@ -198,6 +203,7 @@
|
||||
loading={isLoading}
|
||||
label={documents.string.NewDocument}
|
||||
submitLabel={documents.string.CreateDraft}
|
||||
canSubmit={!submitted}
|
||||
{canProceed}
|
||||
{steps}
|
||||
selectedStep={$currentStep}
|
||||
|
||||
+6
@@ -130,11 +130,16 @@
|
||||
currentStepUpdated(e.detail)
|
||||
}
|
||||
|
||||
let submitted = false
|
||||
|
||||
async function handleSubmit (): Promise<void> {
|
||||
if ($locationStep.space === undefined || $locationStep.project === undefined) {
|
||||
return
|
||||
}
|
||||
|
||||
if (submitted) return
|
||||
submitted = true
|
||||
|
||||
const { category } = docObject
|
||||
if (category === undefined || category === null) return
|
||||
|
||||
@@ -206,6 +211,7 @@
|
||||
submitLabel={documents.string.CreateDraft}
|
||||
{canProceed}
|
||||
{steps}
|
||||
canSubmit={!submitted}
|
||||
selectedStep={currentTemplateStep}
|
||||
on:stepChanged={handleStepChanged}
|
||||
on:submit={handleSubmit}
|
||||
|
||||
Reference in New Issue
Block a user