Campaign status show send settings Bug
This commit is contained in:
parent
4b1b1a380d
commit
1a61067ff9
9 changed files with 119 additions and 26 deletions
|
@ -23,6 +23,7 @@ import {
|
|||
Button,
|
||||
DismissibleAlert,
|
||||
DropdownActionLink,
|
||||
ButtonDropdown,
|
||||
Icon
|
||||
} from "./bootstrap-components";
|
||||
import mailtrainConfig
|
||||
|
@ -696,4 +697,22 @@ export function getLanguageChooser(t) {
|
|||
);
|
||||
|
||||
return languageChooser;
|
||||
}
|
||||
|
||||
export function getNamespaceChooser(t) {
|
||||
|
||||
const namespaceOptions = [];
|
||||
namespaceOptions.push(
|
||||
<DropdownLink to={`/campaigns`}>{t('All')}</DropdownLink>,
|
||||
<DropdownLink to={`/campaigns?namespace=1`}>{t('Root')}</DropdownLink>
|
||||
)
|
||||
|
||||
|
||||
const namespaceChooser = (
|
||||
<ButtonDropdown buttonClassName="btn-primary" menuClassName="dropdown-menu-right" label={t('namespaceFilter')}>
|
||||
{namespaceOptions}
|
||||
</ButtonDropdown>
|
||||
);
|
||||
|
||||
return namespaceChooser;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue