Skip to content

Commit c1872ba

Browse files
committed
v12.1.1
1 parent 9dd7536 commit c1872ba

File tree

7 files changed

+20
-12
lines changed

7 files changed

+20
-12
lines changed

build/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const Gleap = window.Gleap;
22

3-
Gleap.setFrameUrl("http://0.0.0.0:3001");
4-
Gleap.setApiUrl("http://0.0.0.0:9000");
5-
Gleap.setWSApiUrl("ws://0.0.0.0:8080");
3+
//Gleap.setFrameUrl("http://0.0.0.0:3001");
4+
//Gleap.setApiUrl("http://0.0.0.0:9000");
5+
//Gleap.setWSApiUrl("ws://0.0.0.0:8080");
66

77
// Gleap.setLanguage("en");
88

index.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ export namespace Gleap {
9494
): void;
9595
function getInstance(): any;
9696
function open(): void;
97+
function openChecklists(showBackButton?: boolean): void;
98+
function openChecklist(checklistId: string, showBackButton?: boolean): void;
99+
function startChecklist(outboundId: string, showBackButton?: boolean): void;
97100
function openNews(showBackButton?: boolean): void;
98101
function openNewsArticle(id: string, showBackButton?: boolean): void;
99102
function openConversations(showBackButton?: boolean): void;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gleap",
3-
"version": "12.1.0",
3+
"version": "12.1.1",
44
"main": "build/index.js",
55
"scripts": {
66
"start": "webpack serve",

published/12.1.1/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

published/latest/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Gleap.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -868,13 +868,15 @@ class Gleap {
868868
/**
869869
* Open the checklists overview.
870870
*/
871-
static openChecklists() {
871+
static openChecklists(showBackButton = true) {
872872
GleapFrameManager.getInstance().setAppMode("widget");
873873

874874
GleapFrameManager.getInstance().sendMessage(
875875
{
876876
name: "open-checklists",
877-
data: {},
877+
data: {
878+
hideBackButton: !showBackButton,
879+
},
878880
},
879881
true
880882
);
@@ -885,7 +887,7 @@ class Gleap {
885887
/**
886888
* Starts a new checklist and opens it.
887889
*/
888-
static startChecklist(outboundId) {
890+
static startChecklist(outboundId, showBackButton = true) {
889891
if (!outboundId) {
890892
return false;
891893
}
@@ -897,6 +899,7 @@ class Gleap {
897899
name: "start-checklist",
898900
data: {
899901
outboundId: outboundId,
902+
hideBackButton: !showBackButton,
900903
},
901904
},
902905
true
@@ -910,8 +913,8 @@ class Gleap {
910913
/**
911914
* Open an existing checklist.
912915
*/
913-
static openChecklist(id) {
914-
if (!id) {
916+
static openChecklist(checklistId, showBackButton = true) {
917+
if (!checklistId) {
915918
return;
916919
}
917920

@@ -921,7 +924,8 @@ class Gleap {
921924
{
922925
name: "open-checklist",
923926
data: {
924-
id,
927+
id: checklistId,
928+
hideBackButton: !showBackButton,
925929
},
926930
},
927931
true

0 commit comments

Comments
 (0)