@silexlabs/silex-dashboard 1.0.38 → 1.0.39

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.
@@ -18,7 +18,6 @@
18
18
  "Back to home": "< Back",
19
19
  "Welcome to Silex": "Welcome to Silex",
20
20
  "Please login to continue": "Please login to continue",
21
- "New name for the duplicated website": "New name for the duplicated website",
22
21
  "Failed to duplicate website": "Failed to duplicate website",
23
22
  "Website duplicated successfully": "Website duplicated successfully"
24
23
  },
@@ -41,7 +40,6 @@
41
40
  "Back to home": "< Retour",
42
41
  "Welcome to Silex": "Bienvenue sur Silex",
43
42
  "Please login to continue": "Merci de vous connecter pour continuer",
44
- "New name for the duplicated website": "Nouveau nom pour votre site",
45
43
  "Failed to duplicate website": "Erreur, le site n'a pas été dupliqué",
46
44
  "Website duplicated successfully": "Le site a bien été dupliqué"
47
45
  }
@@ -140,13 +140,10 @@ window.addEventListener('load', function() {
140
140
  }
141
141
  },
142
142
 
143
- async duplicateWebsite(fromId) {
144
- const name = prompt('{{ api-translations[lang]["New name for the duplicated website"] }}')
145
- if (!name) return
143
+ async duplicateWebsite(websiteId) {
146
144
  this.loading = true
147
145
  try {
148
- const toId = toSafeId(name)
149
- await websiteDuplicate({fromId, toId, connectorId: this.user.storage.connectorId, data: { name }})
146
+ await websiteDuplicate({websiteId, connectorId: this.user.storage.connectorId, data: { name }})
150
147
  this.error = ''
151
148
  this.websites = await websiteList({connectorId: this.user.storage.connectorId})
152
149
  this.message = '{{ api-translations[lang]["Website duplicated successfully"] }}'
Binary file
@@ -285,13 +285,10 @@ window.addEventListener('load', function() {
285
285
  }
286
286
  },
287
287
 
288
- async duplicateWebsite(fromId) {
289
- const name = prompt('New name for the duplicated website')
290
- if (!name) return
288
+ async duplicateWebsite(websiteId) {
291
289
  this.loading = true
292
290
  try {
293
- const toId = toSafeId(name)
294
- await websiteDuplicate({fromId, toId, connectorId: this.user.storage.connectorId, data: { name }})
291
+ await websiteDuplicate({websiteId, connectorId: this.user.storage.connectorId, data: { name }})
295
292
  this.error = ''
296
293
  this.websites = await websiteList({connectorId: this.user.storage.connectorId})
297
294
  this.message = 'Website duplicated successfully'
@@ -285,13 +285,10 @@ window.addEventListener('load', function() {
285
285
  }
286
286
  },
287
287
 
288
- async duplicateWebsite(fromId) {
289
- const name = prompt('Nouveau nom pour votre site')
290
- if (!name) return
288
+ async duplicateWebsite(websiteId) {
291
289
  this.loading = true
292
290
  try {
293
- const toId = toSafeId(name)
294
- await websiteDuplicate({fromId, toId, connectorId: this.user.storage.connectorId, data: { name }})
291
+ await websiteDuplicate({websiteId, connectorId: this.user.storage.connectorId, data: { name }})
295
292
  this.error = ''
296
293
  this.websites = await websiteList({connectorId: this.user.storage.connectorId})
297
294
  this.message = 'Le site a bien été dupliqué'
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexlabs/silex-dashboard",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "description": "Dashboard for Silex v3",
5
5
  "main": ".silex.js",
6
6
  "scripts": {