Web: Settings: Added cancel and save button.
This commit is contained in:
parent
a599b70c96
commit
39064cf4e2
@ -57,6 +57,7 @@ class SaveCancelButtons extends React.Component {
|
||||
label={saveButtonLabel}
|
||||
/>
|
||||
<Button
|
||||
className="cancel-button"
|
||||
size="big"
|
||||
isDisabled={false}
|
||||
onClick={onCancelClick}
|
||||
|
@ -6,6 +6,9 @@ import ComboBox from "@appserver/components/combobox";
|
||||
import TextInput from "@appserver/components/text-input";
|
||||
import FieldContainer from "@appserver/components/field-container";
|
||||
|
||||
import SaveCancelButtons from "@appserver/components/save-cancel-buttons";
|
||||
import { isMobile } from "react-device-detect";
|
||||
|
||||
const StyledComponent = styled.div`
|
||||
.team-template_text-input {
|
||||
max-width: 350px;
|
||||
@ -17,6 +20,21 @@ const StyledComponent = styled.div`
|
||||
.main-field-container {
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.team-template_buttons {
|
||||
position: absolute;
|
||||
|
||||
justify-content: space-between;
|
||||
${isMobile &&
|
||||
`
|
||||
max-width: 500px;
|
||||
position: static;
|
||||
padding-left: 0px;
|
||||
|
||||
`}
|
||||
}
|
||||
.cancel-button {
|
||||
margin-right: 16px;
|
||||
}
|
||||
`;
|
||||
let options = [];
|
||||
class TeamTemplate extends React.Component {
|
||||
@ -288,6 +306,16 @@ class TeamTemplate extends React.Component {
|
||||
placeholder={t("AddName")}
|
||||
/>
|
||||
</FieldContainer>
|
||||
|
||||
<SaveCancelButtons
|
||||
className="team-template_buttons"
|
||||
onSaveClick={() => console.log("save")}
|
||||
onCancelClick={() => console.log("cancel")}
|
||||
showReminder={true}
|
||||
reminderTest={t("YouHaveUnsavedChanges")}
|
||||
saveButtonLabel={t("SaveButton")}
|
||||
cancelButtonLabel={t("CancelButton")}
|
||||
/>
|
||||
</StyledComponent>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user