@projectcaluma/ember-workflow 11.0.0-beta.5 → 11.0.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [@projectcaluma/ember-workflow-v11.0.0-beta.6](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-workflow-v11.0.0-beta.5...@projectcaluma/ember-workflow-v11.0.0-beta.6) (2022-03-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **workflow:** fix error and success messages for buttons ([9f348cc](https://github.com/projectcaluma/ember-caluma/commit/9f348ccc1c81a2dfdbce220340d2bd977a3be618))
7
+
1
8
  # [@projectcaluma/ember-workflow-v11.0.0-beta.5](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-workflow-v11.0.0-beta.4...@projectcaluma/ember-workflow-v11.0.0-beta.5) (2022-03-11)
2
9
 
3
10
 
@@ -54,7 +54,7 @@ export default class WorkItemButtonComponent extends Component {
54
54
  yield this.args.onSuccess();
55
55
  } else {
56
56
  this.notification.success(
57
- this.intl.t("caluma.mutate-work-item.success")
57
+ this.intl.t(`caluma.mutate-work-item.success.${this.args.mutation}`)
58
58
  );
59
59
  }
60
60
  } catch (e) {
@@ -63,7 +63,9 @@ export default class WorkItemButtonComponent extends Component {
63
63
  } else {
64
64
  // eslint-disable-next-line no-console
65
65
  console.error(e);
66
- this.notification.danger(this.intl.t("caluma.mutate-work-item.error"));
66
+ this.notification.danger(
67
+ this.intl.t(`caluma.mutate-work-item.error.${this.args.mutation}`)
68
+ );
67
69
  }
68
70
  }
69
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-workflow",
3
- "version": "11.0.0-beta.5",
3
+ "version": "11.0.0-beta.6",
4
4
  "description": "Ember addon for Caluma workflow tools.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@glimmer/component": "^1.0.4",
18
- "@projectcaluma/ember-core": "^11.0.0-beta.5",
19
- "ember-apollo-client": "^3.2.0",
18
+ "@projectcaluma/ember-core": "^11.0.0-beta.6",
19
+ "ember-apollo-client": "^4.0.2",
20
20
  "ember-auto-import": "^2.4.0",
21
21
  "ember-cli-babel": "^7.26.11",
22
22
  "ember-cli-htmlbars": "^6.0.1",
@@ -26,16 +26,16 @@
26
26
  "ember-intl": "^5.7.2",
27
27
  "ember-resources": "^4.4.0",
28
28
  "ember-truth-helpers": "^3.0.0",
29
- "ember-uikit": "^5.0.0",
29
+ "ember-uikit": "^5.1.1",
30
30
  "graphql": "^15.8.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@ember/optional-features": "2.0.0",
34
34
  "@ember/test-helpers": "2.6.0",
35
35
  "@embroider/test-setup": "1.5.0",
36
- "@faker-js/faker": "6.0.0-beta.0",
36
+ "@faker-js/faker": "6.0.0",
37
37
  "@glimmer/tracking": "1.0.4",
38
- "@projectcaluma/ember-testing": "11.0.0-beta.4",
38
+ "@projectcaluma/ember-testing": "11.0.0-beta.5",
39
39
  "broccoli-asset-rev": "3.0.0",
40
40
  "ember-cli": "3.28.5",
41
41
  "ember-cli-code-coverage": "1.0.3",
@@ -3,8 +3,14 @@ caluma:
3
3
  complete: "Abschliessen"
4
4
  skip: "Überspringen"
5
5
  cancel: "Abbrechen"
6
- success: "Der Status der Aufgabens wurde erfolgreich angepasst!"
7
- error: "Hoppla, beim Speichern des Aufgabenstatus ist etwas schief gelaufen..."
6
+ success:
7
+ complete: "Die Aufgabe wurde erfolgreich abgeschlossen!"
8
+ skip: "Die Aufgabe wurde erfolgreich übersprungen!"
9
+ cancel: "Die Aufgabe wurde erfolgreich abgebrochen!"
10
+ error:
11
+ complete: "Hoppla, beim Abschliessen der Aufgabe ist etwas schief gelaufen..."
12
+ skip: "Hoppla, beim Überspringen der Aufgabe ist etwas schief gelaufen..."
13
+ cancel: "Hoppla, beim Abbrechen der Aufgabe ist etwas schief gelaufen..."
8
14
 
9
15
  task-button:
10
- error: "Hoppla, keine Aufgabe wurde gefunden."
16
+ error: "Fehler beim Laden der Aufgabe"
@@ -3,8 +3,14 @@ caluma:
3
3
  complete: "Complete"
4
4
  skip: "Skip"
5
5
  cancel: "Cancel"
6
- success: "Work item state was successfully changed!"
7
- error: "Ooops, something went wrong while changing the work item state..."
6
+ success:
7
+ complete: "Work item was successfully completed!"
8
+ skip: "Work item was successfully skipped!"
9
+ cancel: "Work item was successfully canceled!"
10
+ error:
11
+ complete: "Ooops, something went wrong while completing the work item..."
12
+ skip: "Ooops, something went wrong while skipping the work item..."
13
+ cancel: "Ooops, something went wrong while canceling the work item..."
8
14
 
9
15
  task-button:
10
- error: "Ooops, no work item was found."
16
+ error: "Error while fetching the work item"
@@ -3,8 +3,14 @@ caluma:
3
3
  complete: "Terminer"
4
4
  skip: "Sauter"
5
5
  cancel: "Annuler"
6
- success: "Succès!"
7
- error: "Oups, quelque chose a mal ..."
6
+ success:
7
+ complete: "La tâche a été terminée avec succès !"
8
+ skip: "La tâche a été sautée avec succès !"
9
+ cancel: "La tâche a été annulée avec succès !"
10
+ error:
11
+ complete: "Oups, quelque chose s'est mal passé lors de la clôture de la tâche..."
12
+ skip: "Oups, quelque chose s'est mal passé lors du saut de la tâche..."
13
+ cancel: "Oups, quelque chose s'est mal passé lors de l'annulation de la tâche"
8
14
 
9
15
  task-button:
10
- error: "Oups, aucune tâche n'a été trouvée."
16
+ error: "Erreur lors du chargement de la tâche"