Преглед на файлове

resolves commandId and layout on showModal

yogevbd преди 6 години
родител
ревизия
f6728fc1d6
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3
    1
      lib/src/commands/Commands.ts

+ 3
- 1
lib/src/commands/Commands.ts Целия файл

@@ -59,7 +59,9 @@ export class Commands {
59 59
     const commandId = this.uniqueIdProvider.generate('showModal');
60 60
     const result = this.nativeCommandsSender.showModal(commandId, layout);
61 61
     this.commandsObserver.notify('showModal', { commandId, layout });
62
-    return result;
62
+    return result.then(() => {
63
+      return {commandId, layout};
64
+    });
63 65
   }
64 66
 
65 67
   public dismissModal(componentId) {