Merge remote-tracking branch 'origin/main' into refactor/ui

This commit is contained in:
liyasthomas
2021-07-12 07:05:29 +05:30

View File

@@ -254,7 +254,9 @@
:label="
$t('parameters') +
`${
newParams$.length !== 0 ? ' \xA0 • \xA0 ' + newParams$.length : ''
newParams$.length !== 0
? ' \xA0 • \xA0 ' + newParams$.length
: ''
}`
"
:selected="true"
@@ -864,7 +866,12 @@ import { generateCodeWithGenerator } from "~/helpers/codegen/codegen"
import { getSettingSubject, applySetting } from "~/newstore/settings"
import { addRESTHistoryEntry } from "~/newstore/history"
import clone from "lodash/clone"
import { restEndpoint$, restParams$, restRequest$, setRESTEndpoint } from "~/newstore/RESTSession"
import {
restEndpoint$,
restParams$,
restRequest$,
setRESTEndpoint,
} from "~/newstore/RESTSession"
export default {
components: { Splitpanes, Pane },
@@ -915,7 +922,7 @@ export default {
],
newEndpoint$: "",
newParams$: []
newParams$: [],
}
},
subscriptions() {
@@ -927,7 +934,7 @@ export default {
"EXPERIMENTAL_URL_BAR_ENABLED"
),
newEndpoint$: restEndpoint$,
newParams$: restParams$
newParams$: restParams$,
}
},
watch: {
@@ -2181,7 +2188,7 @@ export default {
},
},
async mounted() {
restRequest$.subscribe(x => console.log(x))
restRequest$.subscribe((x) => console.log(x))
this._keyListener = function (e) {
if (e.key === "g" && (e.ctrlKey || e.metaKey)) {
e.preventDefault()