acsi-core 0.1.64 → 0.1.66

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.
@@ -2,6 +2,7 @@ import React from "react";
2
2
  interface IOption {
3
3
  label: string;
4
4
  value: string;
5
+ disabled?: boolean;
5
6
  }
6
7
  interface IProps {
7
8
  name: string;
package/dist/index.js CHANGED
@@ -990,10 +990,16 @@ var apiUpload$1 = axios.create({
990
990
  window.location.href = "/login";
991
991
  }
992
992
  if (error.response.status == 403) {
993
+ var hostname = window.location.hostname;
994
+ var parts = hostname.split('.');
995
+ var domain = parts.slice(-2).join('.');
993
996
  localStorage.removeItem(ACCESS_TOKEN);
994
997
  localStorage.removeItem(ORGANIZATION_TENANT);
995
998
  localStorage.removeItem(ORGANIZATION_TEAM);
996
- Cookies.remove('auth');
999
+ Cookies.remove('auth', {
1000
+ path: '/',
1001
+ domain: "." + domain
1002
+ });
997
1003
  localStorage.removeItem("USER_EMAIL");
998
1004
  window.location.href = "/login";
999
1005
  }
@@ -1804,7 +1810,7 @@ var CoreRadio = function CoreRadio(props) {
1804
1810
  onChange: function onChange() {
1805
1811
  return;
1806
1812
  },
1807
- disabled: disabled
1813
+ disabled: disabled || i.disabled
1808
1814
  }), React__default.createElement(reactstrap.Label, {
1809
1815
  htmlFor: "core-radio-" + i.value
1810
1816
  }, i.label));