diff --git a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/Contribute.vue b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/Contribute.vue
index f25aa0b7..56c01dce 100644
--- a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/Contribute.vue
+++ b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/Contribute.vue
@@ -432,7 +432,7 @@
return this.resourceDetails.resourceLicenceId > 0;
},
locationTabComplete(): boolean {
- return this.resourceDetails.resourceCatalogueId > 0;
+ return this.resourceDetails.resourceCatalogueId > 1;
},
certificateTabComplete(): boolean {
return this.resourceDetails.certificateEnabled !== null;
diff --git a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/ContributeAssessmentSettings.vue b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/ContributeAssessmentSettings.vue
index 088f74c9..bc7de027 100644
--- a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/ContributeAssessmentSettings.vue
+++ b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/ContributeAssessmentSettings.vue
@@ -74,9 +74,7 @@
+ :initialValue="endGuidance"/>
Tip
diff --git a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/ContributeLocationTab.vue b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/ContributeLocationTab.vue
index a66944a4..5cb06877 100644
--- a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/ContributeLocationTab.vue
+++ b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/ContributeLocationTab.vue
@@ -7,33 +7,57 @@
Primary catalogue
-
+
+
+
+
-
\ No newline at end of file
+
diff --git a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute/CatalogueSelect.vue b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute/CatalogueSelect.vue
index 6d942b07..8754e4e0 100644
--- a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute/CatalogueSelect.vue
+++ b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute/CatalogueSelect.vue
@@ -26,7 +26,7 @@
A catalogue is a curated set of resources that has its own web page.
- You can contribute a resource as an editor of a catalogue.
+ You can contribute a resource as an editor of a catalogue.
You can manage all resources that you have contributed in the My contributions area.
@@ -45,9 +45,11 @@
-
- You have selected a hidden catalogue.
- If you publish this resource, learners will only be able to access it when the catalogue is made available by Learning Hub platform administrators.
+
+
+ You have selected a hidden catalogue.
+ If you publish this resource, learners will only be able to access it when the catalogue is made available by Learning Hub platform administrators.
+
@@ -87,9 +89,12 @@
},
},
created() {
- if (this.value > 0) {
+ if (this.value > 1) {
this.selectedCatalogue = this.userCatalogues.find(c => c.nodeId == this.value);
}
+ else {
+ this.selectedCatalogue = new CatalogueModel({ nodeId: 0 });
+ }
}
})
diff --git a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute/ContentCommon.vue b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute/ContentCommon.vue
index 11b2c7d8..1d4cf7f6 100644
--- a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute/ContentCommon.vue
+++ b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute/ContentCommon.vue
@@ -314,11 +314,11 @@
return this.$store.state.userProviders;
},
resourceCatalogueCount(): number {
- if (!this.$store.state.userCatalogues) {
+ if (!this.$store.state.userCatalogues) {
return 0;
} else {
return this.$store.state.userCatalogues.length;
- }
+ }
},
userIsAuthor(): boolean {
return this.authors.filter(a => a.isContributor).length > 0;
diff --git a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute/contributeState.ts b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute/contributeState.ts
index e4bdf763..0ccb4ce6 100644
--- a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute/contributeState.ts
+++ b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute/contributeState.ts
@@ -114,7 +114,7 @@ const setCommonContentState = function (state: State) {
&& state.resourceDetail.resourceAccessibilityEnum !== ResourceAccessibility.None
&& state.resourceDetail.description !== ''
&& (state.resourceDetail.resourceLicenceId > 0 || state.resourceDetail.resourceType === ResourceType.WEBLINK)
- && state.resourceDetail.resourceCatalogueId > 0
+ && state.resourceDetail.resourceCatalogueId > 1
&& state.resourceDetail.resourceAuthors.length > 0
&& state.resourceDetail.certificateEnabled !== null
&& state.resourceDetail.resourceKeywords.length > 0;