mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Add system specs for site settings (#209)
This commit is contained in:
committed by
GitHub
parent
ce21d660d1
commit
1e6eb17af5
@@ -65,7 +65,7 @@ const PostEditForm = ({
|
||||
type="text"
|
||||
value={title}
|
||||
onChange={e => handleChangeTitle(e.target.value)}
|
||||
className="form-control"
|
||||
className="postTitle form-control"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -91,7 +91,7 @@ const PostEditForm = ({
|
||||
value={description}
|
||||
onChange={e => handleChangeDescription(e.target.value)}
|
||||
rows={5}
|
||||
className="form-control"
|
||||
className="postDescription form-control"
|
||||
/>
|
||||
|
||||
<div className="postEditFormButtons">
|
||||
|
||||
@@ -52,6 +52,7 @@ const OAuthProviderItem = ({
|
||||
window.open(`/o_auths/${oAuth.id}/start?reason=test`, '', 'width=640, height=640')
|
||||
}
|
||||
icon={<TestIcon />}
|
||||
customClass='testAction'
|
||||
>
|
||||
{I18n.t('common.buttons.test')}
|
||||
</ActionLink>
|
||||
@@ -62,6 +63,7 @@ const OAuthProviderItem = ({
|
||||
setPage('edit');
|
||||
}}
|
||||
icon={<EditIcon />}
|
||||
customClass='editAction'
|
||||
>
|
||||
{I18n.t('common.buttons.edit')}
|
||||
</ActionLink>
|
||||
@@ -69,6 +71,7 @@ const OAuthProviderItem = ({
|
||||
<ActionLink
|
||||
onClick={() => confirm(I18n.t('common.confirmation')) && handleDeleteOAuth(oAuth.id)}
|
||||
icon={<DeleteIcon />}
|
||||
customClass='deleteAction'
|
||||
>
|
||||
{I18n.t('common.buttons.delete')}
|
||||
</ActionLink>
|
||||
|
||||
@@ -85,13 +85,18 @@ class BoardsEditable extends React.Component<Props, State> {
|
||||
</div>
|
||||
|
||||
<div className="boardEditableActions">
|
||||
<ActionLink onClick={this.toggleEditMode} icon={<EditIcon />}>
|
||||
<ActionLink
|
||||
onClick={this.toggleEditMode}
|
||||
icon={<EditIcon />}
|
||||
customClass="editAction"
|
||||
>
|
||||
{I18n.t('common.buttons.edit')}
|
||||
</ActionLink>
|
||||
|
||||
<ActionLink
|
||||
onClick={() => confirm(I18n.t('common.confirmation')) && handleDelete(id)}
|
||||
icon={<DeleteIcon />}
|
||||
customClass="deleteAction"
|
||||
>
|
||||
{I18n.t('common.buttons.delete')}
|
||||
</ActionLink>
|
||||
|
||||
@@ -76,13 +76,18 @@ class PostStatusEditable extends React.Component<Props, State> {
|
||||
<PostStatusLabel name={name} color={color} />
|
||||
|
||||
<div className="postStatusEditableActions">
|
||||
<ActionLink onClick={this.toggleEditMode} icon={<EditIcon />}>
|
||||
<ActionLink
|
||||
onClick={this.toggleEditMode}
|
||||
icon={<EditIcon />}
|
||||
customClass="editAction"
|
||||
>
|
||||
{I18n.t('common.buttons.edit')}
|
||||
</ActionLink>
|
||||
|
||||
<ActionLink
|
||||
onClick={() => confirm(I18n.t('common.confirmation')) && handleDelete(id)}
|
||||
icon={<DeleteIcon />}
|
||||
customClass="deleteAction"
|
||||
>
|
||||
{I18n.t('common.buttons.delete')}
|
||||
</ActionLink>
|
||||
|
||||
@@ -102,7 +102,7 @@ class RoadmapSiteSettingsP extends React.Component<Props, State> {
|
||||
{(provided, snapshot) => (
|
||||
<div
|
||||
ref={provided.innerRef}
|
||||
className={`roadmapPostStatuses${isDragging ? ' isDraggingSomething' : ''}${snapshot.isDraggingOver ? ' isDraggingOver' : ''}`}
|
||||
className={`inRoadmapPostStatuses roadmapPostStatuses${isDragging ? ' isDraggingSomething' : ''}${snapshot.isDraggingOver ? ' isDraggingOver' : ''}`}
|
||||
{...provided.droppableProps}
|
||||
>
|
||||
{statusesInRoadmap.map((postStatus, i) => (
|
||||
@@ -137,7 +137,7 @@ class RoadmapSiteSettingsP extends React.Component<Props, State> {
|
||||
{(provided, snapshot) => (
|
||||
<div
|
||||
ref={provided.innerRef}
|
||||
className={`roadmapPostStatuses${isDragging ? ' isDraggingSomething' : ''}${snapshot.isDraggingOver ? ' isDraggingOver' : ''}`}
|
||||
className={`notInRoadmapPostStatuses roadmapPostStatuses${isDragging ? ' isDraggingSomething' : ''}${snapshot.isDraggingOver ? ' isDraggingOver' : ''}`}
|
||||
{...provided.droppableProps}
|
||||
>
|
||||
{statusesNotInRoadmap.map((postStatus, i) => (
|
||||
|
||||
@@ -124,6 +124,7 @@ class UserEditable extends React.Component<Props, State> {
|
||||
onClick={() => editEnabled && this.toggleEditMode()}
|
||||
icon={<EditIcon />}
|
||||
disabled={!editEnabled}
|
||||
customClass="editAction"
|
||||
>
|
||||
{ I18n.t('common.buttons.edit') }
|
||||
</ActionLink>
|
||||
@@ -132,6 +133,7 @@ class UserEditable extends React.Component<Props, State> {
|
||||
onClick={() => blockEnabled && this._handleUpdateUserStatus()}
|
||||
icon={user.status !== USER_STATUS_BLOCKED ? <BlockIcon /> : <UnblockIcon />}
|
||||
disabled={!blockEnabled}
|
||||
customClass={user.status !== USER_STATUS_BLOCKED ? "blockAction" : "unblockAction"}
|
||||
>
|
||||
{
|
||||
user.status !== USER_STATUS_BLOCKED ?
|
||||
|
||||
Reference in New Issue
Block a user