- Guest + Sandbox Guest
user: guestusr@mailinator.com @@ -128,6 +131,19 @@
To access to your breeding program, please log in.
+
To acknowledge that you have used your iD and that it has been authenticated, we display
the ORCID iD icon
@@ -188,6 +205,7 @@
public isLoginModalActive: boolean = false;
public isLoginServerErrorModalActive: boolean = false;
public loginProcessing: boolean = false;
+ public githubLoginProcessing: boolean = false;
private orcidLogoUrl: string = 'https://orcid.org/sites/default/files/images/orcid_24x24.png';
@Prop()
public loginRedirect!: boolean;
@@ -231,9 +249,28 @@
window.location.href = process.env.VUE_APP_BI_API_ROOT+'/sso/start';
}
+ async githubLogin() {
+ // Check the server can be contacted
+ this.githubLoginProcessing = true;
+ try {
+ await ServerManagementService.checkHealth();
+ } catch (error) {
+ this.isLoginServerErrorModalActive = true;
+ this.githubLoginProcessing = false;
+ return;
+ }
+
+ // Start login process
+ window.location.href = process.env.VUE_APP_BI_API_ROOT+'/sso/start/github';
+ }
+
get sandboxConfig() {
return process.env.VUE_APP_SANDBOX;
}
+ alternateAuthenticationEnabled() {
+ return process.env.VUE_APP_ALTERNATE_AUTHENTICATION_ENABLED === 'true';
}
+
+ }
diff --git a/src/components/modals/SubEntityDatasetModal.vue b/src/components/modals/SubEntityDatasetModal.vue
index 5c7a04f55..f9c92d752 100644
--- a/src/components/modals/SubEntityDatasetModal.vue
+++ b/src/components/modals/SubEntityDatasetModal.vue
@@ -45,8 +45,8 @@
>
@@ -93,8 +93,14 @@ import DataForm from "@/components/forms/DataForm.vue";
import {DatasetMetadata} from "@/breeding-insight/model/DatasetMetadata";
import {SubEntityDatasetNewRequest} from "@/breeding-insight/model/SubEntityDatasetNewRequest";
import {DataFormEventBusHandler} from "@/components/forms/DataFormEventBusHandler";
+import {StringFormatters} from "../../breeding-insight/utils/StringFormatters";
@Component({
+ computed: {
+ StringFormatters() {
+ return StringFormatters
+ }
+ },
mixins: [validationMixin],
components: {DataForm, BasicSelectField, BasicInputField, AutoCompleteField, BaseModal}
})
@@ -116,6 +122,8 @@ export default class SubEntityDatasetModal extends Vue {
experiment!: Trial;
@Prop()
defaultObservationLevel?: string;
+ @Prop()
+ existingDatasetNames!: string[];
// Reactive, private (would not be reactive if declared without initial values).
private newSubEntity: SubEntityDatasetNewRequest = new SubEntityDatasetNewRequest();
@@ -130,7 +138,7 @@ export default class SubEntityDatasetModal extends Vue {
repeatedMeasures: {
required,
integer,
- between: between(1, 50), // Note: capped at 50 for performance considerations.
+ between: between(1, 50), // Note: capped at 50 for performance considerations
}
}
@@ -142,6 +150,14 @@ export default class SubEntityDatasetModal extends Vue {
}
async invokeCreate(){
+ //Check if sub-entity name is already in experiment
+ let nameAlreadyInExp = this.existingDatasetNames.map(y => y.toLowerCase()).includes(this.newSubEntity.name.toLowerCase());
+ if (nameAlreadyInExp) {
+ this.$emit('show-error-notification', `A ${this.newSubEntity.name} dataset already exists in ${this.experiment.trialName}.`);
+ this.newSubEntityFormState.bus.$emit(DataFormEventBusHandler.SAVE_COMPLETE_EVENT);
+ return;
+ }
+
try {
// Invoke the create prop, which returns true if create succeeded.
await this.create(this.newSubEntity)
@@ -155,4 +171,4 @@ export default class SubEntityDatasetModal extends Vue {
}
}
-
\ No newline at end of file
+
diff --git a/src/components/trait/TraitImportTemplateMessageBox.vue b/src/components/trait/TraitImportTemplateMessageBox.vue
deleted file mode 100644
index 40536a6a6..000000000
--- a/src/components/trait/TraitImportTemplateMessageBox.vue
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
- Breeding Insight is funded by the U.S. Department of Agriculture (USDA) Agricultural Research Service (ARS) through Cornell University.
+ Breeding Insight is funded by the U.S. Department of Agriculture (USDA) Agricultural Research Service (ARS) through University of Florida/IFAS. Formerly funded through Cornell University.