message: frontend: Add Modify Labels modal for namespaces
diff: @@ -9,7 +9,7 @@ import {makeList, TwoColumns} from './factory';
  import {RowOfKind} from './RBAC/role';
  import {SafetyFirst} from './safety-first';
  import {SparklineWidget} from './sparkline-widget/sparkline-widget';
  -import {ActionsMenu, Dropdown, Firehose, LabelList, LoadingInline, NavTitle, ResourceIcon} from './utils';
  +import {ActionsMenu, Cog, Dropdown, Firehose, kindObj, LabelList, LoadingInline, NavTitle, ResourceIcon} from './utils';
  import {createNamespaceModal, deleteNamespaceModal, configureNamespacePullSecretModal} from './modals';
  const FullHeader = () => <div className="row co-m-table-grid__head">
  @@ -97,19 +97,13 @@ const Details = (namespace) => {
  </div>;
  }
  - const openDeleteNamespaceModal = function() {
  - deleteNamespaceModal({
  - resource: namespace
  - });
  - };
  -
  - const menuActions = {
  - DeleteNamespace: {
  + const deleteModal = {
  label: 'Delete Namespace',
  - callback: openDeleteNamespaceModal
  - }
  + callback: () => deleteNamespaceModal({resource: namespace}),
  };
  + const menuActions = [Cog.factory.ModifyLabels(kindObj('namespace'), namespace), deleteModal];
  +
  return <div className="details-page">
  {namespace.metadata.name !== 'default' && namespace.status.phase !== 'Terminating' && <ActionsMenu actions={menuActions} />}
  <h1 className="co-m-pane__title co-m-pane__body__top-controls">Namespace {namespace.metadata.name}</h1>
  