marty 10.0.2 → 10.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5d6d6cf461151669f3685da2c7a4b55564e571f16b2dfb94a500ee7229ebd25
4
- data.tar.gz: f1b8b7d2a8ee38da6c96ec0fc16917b0b9b6d57837fc6f772adcf7b55a10c23c
3
+ metadata.gz: 360af94e92c74e7d1102352352fb0b412fb286028fd250b388532c48abb197f4
4
+ data.tar.gz: 848685b6765630af1acdae54e6667ea995eee94d86ec36e0103313054df80140
5
5
  SHA512:
6
- metadata.gz: 381605ae8add5c23b97c06190ebfa5b2bf8c6f3e958fcbb44dc64a5dafd5b709aa608f7e7321b3fd3bdcee6a3ed067c7232e8226e611f4410c859f06b756138d
7
- data.tar.gz: 150f1fe10f330f81c91211428ef0921c5ffd401dd550655549cbe56b619f940008e839ec94eee0ec59d959628f8f43069f29ef95987fd33f33f9136ba12a59a7
6
+ metadata.gz: d85a3910d4654ea5ee18a330b22c1bc23cef9dab6c6e745ff4fbb5b70a0a06a29b46b81b426adb3bbe51c3b2ccedc81264352beacc5b9161a2f32f23c92eed7a
7
+ data.tar.gz: bd061cae990b2b935beac03df951065a405834c5d3757e641f557a4d1170bd9a9b3217cdd89267b262bb906a184202c7318a39eb3d8deb198ea22274ec3b43e2
@@ -2,6 +2,7 @@
2
2
  initComponent() {
3
3
  this.callParent();
4
4
 
5
+ this.martyDocumentTitle = document.title;
5
6
  this.mainPanel = this.down('panel[itemId="main_panel"]');
6
7
  this.menuBar = this.down('container[itemId="menu_bar"]');
7
8
  const statusBar = (this.statusBar = this.down(
@@ -34,7 +35,17 @@
34
35
  loadRoute(token) {
35
36
  if (token) {
36
37
  this.netzkeLoadComponent(token, {
37
- container: this.mainPanel
38
+ container: this.mainPanel,
39
+ callback: (component) => {
40
+ if (component.martyDocumentTitle) {
41
+ document.title = [
42
+ this.martyDocumentTitle,
43
+ component.martyDocumentTitle
44
+ ].join(" - ");
45
+ } else {
46
+ document.title = this.martyDocumentTitle;
47
+ }
48
+ }
38
49
  });
39
50
  } else {
40
51
  this.mainPanel.removeAll();
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Marty
4
- VERSION = '10.0.2'
4
+ VERSION = '10.0.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marty
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.0.2
4
+ version: 10.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arman Bostani
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2020-03-17 00:00:00.000000000 Z
17
+ date: 2020-03-24 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: actioncable