<commit_before>import declare from 'dojo/_base/declare';
import lang from 'dojo/_base/lang';
import View from 'argos/View';
import getResource from 'argos/I18n';

const resource = getResource('logOff');

const __class = declare('crm.Views.LogOff', [View], {
  // Templates
  widgetTemplate: new Simplate([
    '<div id="{%= $.id %}" title="{%: $.titleText %}" class="panel {%= $.cls %}" hideBackButton="true">',
    '<h3>{%= $.messageText %}</h3>',
    '<a href="" data-action="login">{%: $.loginText %}</a>',
    '</div>',
  ]),

  // Localization
  messageText: resource.messageText,
  loginText: resource.loginText,
  titleText: resource.titleText,

  id: 'logoff',

  login: function login() {
    window.open('#_login', '_blank', 'menubar,status,scrollbars,toolbar,location,personalbar');
  },

  createToolLayout: function createToolLayout() {
    return this.tools || (this.tools = {
      bbar: false,
      tbar: false,
    });
  },
});
<commit_msg>INFORCRM-12293: Replaced the window.open... with window.location.reload() to force the refresh of the back to show the login again.<commit_after>import declare from 'dojo/_base/declare';
import lang from 'dojo/_base/lang';
import View from 'argos/View';
import getResource from 'argos/I18n';

const resource = getResource('logOff');

const __class = declare('crm.Views.LogOff', [View], {
  // Templates
  widgetTemplate: new Simplate([
    '<div id="{%= $.id %}" title="{%: $.titleText %}" class="panel {%= $.cls %}" hideBackButton="true">',
    '<h3>{%= $.messageText %}</h3>',
    '<a href="" data-action="login">{%: $.loginText %}</a>',
    '</div>',
  ]),

  // Localization
  messageText: resource.messageText,
  loginText: resource.loginText,
  titleText: resource.titleText,

  id: 'logoff',

  login: function login() {
    window.location.reload();
  },

  createToolLayout: function createToolLayout() {
    return this.tools || (this.tools = {
      bbar: false,
      tbar: false,
    });
  },
});

{'fraction_non_alphanumeric': 0.1910569105691057, 'fraction_numerical': 0.0066056910569105695, 'mean_word_length': 3.9848101265822784, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5406320', 'n_tokens_mistral': 665, 'n_tokens_neox': 646, 'n_words': 153}