@things-factory/integration-ui 6.0.60 → 6.0.64

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.
@@ -1,3 +1,5 @@
1
+ import '@operato/data-grist/ox-grist.js'
2
+
1
3
  import gql from 'graphql-tag'
2
4
  import { css, html, LitElement } from 'lit'
3
5
 
@@ -288,36 +290,7 @@ class ScenarioDetail extends localize(i18next)(LitElement) {
288
290
  }
289
291
 
290
292
  async _deleteSteps() {
291
- if (!confirm(i18next.t('text.sure_to_x', { x: i18next.t('text.delete') }))) return
292
-
293
- const ids = this.dataGrist.selected.map(record => record.id)
294
- if (!(ids && ids.length > 0)) return
295
-
296
- const response = await client.mutate({
297
- mutation: gql`
298
- mutation ($ids: [String!]!) {
299
- deleteSteps(ids: $ids)
300
- }
301
- `,
302
- variables: {
303
- ids
304
- }
305
- })
306
-
307
- if (response.errors) return
308
-
309
- this.dataGrist.fetch()
310
- this.requestRefresh()
311
-
312
- await document.dispatchEvent(
313
- new CustomEvent('notify', {
314
- detail: {
315
- message: i18next.t('text.info_x_successfully', {
316
- x: i18next.t('text.delete')
317
- })
318
- }
319
- })
320
- )
293
+ this.dataGrist.deleteSelectedRecords(true)
321
294
  }
322
295
 
323
296
  requestRefresh() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/integration-ui",
3
- "version": "6.0.60",
3
+ "version": "6.0.64",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -35,8 +35,8 @@
35
35
  "@operato/utils": "^1.0.1",
36
36
  "@things-factory/export-base": "^6.0.60",
37
37
  "@things-factory/import-base": "^6.0.60",
38
- "@things-factory/integration-base": "^6.0.60",
38
+ "@things-factory/integration-base": "^6.0.64",
39
39
  "moment-timezone": "^0.5.40"
40
40
  },
41
- "gitHead": "d9d824a2cfd93ac110f2c4acd67c4ffc175a8c87"
41
+ "gitHead": "0fc17b9d97e347aea917f7b8f6c0518285ac30c8"
42
42
  }