@things-factory/auth-ui 4.3.131 → 4.3.138

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.
@@ -365,10 +365,10 @@ class Application extends connect(store)(PageView) {
365
365
  })
366
366
 
367
367
  if (response.errors) {
368
- console.error('update fail')
368
+ this.showToast('resource failed to update')
369
369
  } else {
370
370
  this.application = { ...this.application, ...response.data.updateApplication }
371
- console.log('update sucess')
371
+ this.showToast('resource updated successfully')
372
372
  }
373
373
  }
374
374
 
@@ -390,12 +390,16 @@ class Application extends connect(store)(PageView) {
390
390
 
391
391
  const result = response.data.deleteApplication
392
392
  if (result) {
393
- console.log('delete sucess')
393
+ this.showToast('resource deleted successfully')
394
394
  navigate('applications')
395
395
  } else {
396
- console.error('delete fail')
396
+ this.showToast('resource failed to delete')
397
397
  }
398
398
  }
399
+
400
+ showToast(message) {
401
+ document.dispatchEvent(new CustomEvent('notify', { detail: { message } }))
402
+ }
399
403
  }
400
404
 
401
405
  window.customElements.define('application-page', Application)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/auth-ui",
3
- "version": "4.3.131",
3
+ "version": "4.3.138",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -33,10 +33,10 @@
33
33
  "@operato/i18n": "^0.4.6",
34
34
  "@operato/layout": "^0.4.6",
35
35
  "@operato/lottie-player": "^0.4.6",
36
- "@things-factory/auth-base": "^4.3.131",
36
+ "@things-factory/auth-base": "^4.3.138",
37
37
  "@things-factory/i18n-base": "^4.3.131",
38
38
  "@things-factory/more-base": "^4.3.131",
39
39
  "clipboard": "^2.0.6"
40
40
  },
41
- "gitHead": "3ae054257c32ac18b023913a313f784459581ea3"
41
+ "gitHead": "1d4e0a3ff6b8792c843b9735a28a3f5fb946b144"
42
42
  }