Commit e33ca2bc authored by Baptiste Toulemonde's avatar Baptiste Toulemonde
Browse files

fix issues #23 #24 #25 #27

parent 16e434ce
......@@ -55,6 +55,9 @@ export class AppComponent implements OnInit {
}
ngOnInit() {
if (this.isStandalone) {
document.title = 'PASTIS';
}
}
}
......@@ -98,7 +98,7 @@ export class CreateProfileComponent implements OnInit {
changeChoiceCreateProfile($event: string) {
console.log($event);
if ($event == this.firstChoice) {
if ($event === this.firstChoice) {
this.profilPaChoice = true;
} else {
this.profilPaChoice = false;
......
......@@ -535,15 +535,15 @@ export class FileTreeComponent implements OnDestroy {
async remove(node: FileNode) {
const dataToSendToPopUp = {} as PastisDialogData;
const nodeType = node.sedaData.Element == SedaElementConstants.attribute ? this.popupRemoveSedaElementAttribut : this.popupRemoveSedaElementMetadonnee;
dataToSendToPopUp.titleDialog = this.popupRemoveTitre + ' ' + nodeType + ' "' + node.name + '" ?';
dataToSendToPopUp.subTitleDialog = node.sedaData.Element == SedaElementConstants.attribute ?
dataToSendToPopUp.titleDialog = this.popupRemoveTitre + ' ' + nodeType + ' "' + this.onResolveName(node) + '" ?';
dataToSendToPopUp.subTitleDialog = node.sedaData.Element === SedaElementConstants.attribute ?
this.popupRemoveSousTitreAttribut : this.popupRemoveSousTitreMetadonnee;
dataToSendToPopUp.fileNode = node;
dataToSendToPopUp.component = UserActionRemoveMetadataComponent;
const popUpAnswer = await this.fileService.openPopup(dataToSendToPopUp) as FileNode;
if (popUpAnswer) {
const deleteTypeText = node.sedaData.Element == SedaElementConstants.attribute ? this.popupRemoveDeleteTypeTextM : this.popupRemoveDeleteTypeTextF;
const deleteTypeText = node.sedaData.Element === SedaElementConstants.attribute ? this.popupRemoveDeleteTypeTextM : this.popupRemoveDeleteTypeTextF;
this.removeItem(node, this.fileService.nodeChange.getValue());
this.loggingService.showSuccess(nodeType + node.name + this.notificationRemoveSuccessOne + deleteTypeText + this.notificationRemoveSuccessTwo);
}
......
......@@ -95,7 +95,7 @@
"POPUP_CREATION_CANCEL_LABEL":"CANCEL",
"POPUP_CREATION_TITLE_DIALOG": "Choice of profile type",
"POPUP_CREATION_SUBTITLE_DIALOG":"Creating a profile",
"POPUP_CREATION_OK_LABEL": "TERMINATE",
"POPUP_CREATION_OK_LABEL": "CONFIRM",
"CHOICE": {
"FIRST_CHOICE": "PA",
"SECOND_CHOICE": "PUA",
......@@ -171,7 +171,7 @@
"POPUP_SOUS_TITRE": "Editing attributes of",
"POPUP_VALIDER": "Validate",
"POPUP_ANNULER": "Cancel",
"ENREGISTRER_PROFIL_TOOLTIP": "Save profile",
"ENREGISTRER_PROFIL_TOOLTIP": "Export profile",
"TELECHARGER_MANUEL_TOOLTIP": "Setting",
"NOM_METADONNEE": "Metadata name",
"VALEUR_FIXE": "Fixed value",
......
......@@ -95,7 +95,7 @@
"POPUP_CREATION_CANCEL_LABEL":"ANNULER",
"POPUP_CREATION_TITLE_DIALOG":"Choix du type de profil" ,
"POPUP_CREATION_SUBTITLE_DIALOG": "Création d'un profil",
"POPUP_CREATION_OK_LABEL": "TERMINER",
"POPUP_CREATION_OK_LABEL": "VALIDER",
"CHOICE": {
"FIRST_CHOICE": "PA",
"SECOND_CHOICE": "PUA",
......@@ -171,7 +171,7 @@
"POPUP_SOUS_TITRE": "Edition des attributs de",
"POPUP_VALIDER": "Valider",
"POPUP_ANNULER": "Annuler",
"ENREGISTRER_PROFIL_TOOLTIP": "Enregistrer le profil",
"ENREGISTRER_PROFIL_TOOLTIP": "Exporter le profil",
"TELECHARGER_MANUEL_TOOLTIP": "Paramètres",
"NOM_METADONNEE": "Nom de la métadonnée",
"VALEUR_FIXE": "Valeur fixe",
......
......@@ -6,7 +6,7 @@
<base href="/">
<meta content="width=device-width, initial-scale=1" name="viewport">
<link href="favicon.ico" rel="icon" type="image/x-icon">
<link href="favicon.ico" id="favicon" rel="icon" type="image/x-icon">
</head>
<body>
<app-root> <!-- selector from app.component.ts -->
......
......@@ -44,5 +44,8 @@ if (environment.production) {
enableProdMode();
}
if (environment.standalone) {
document.getElementById('favicon').setAttribute('href', '../assets/favicon.ico');
}
platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error(err));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment