From 507716527542e19746614e46d6b1e19313bb9a37 Mon Sep 17 00:00:00 2001
From: mgabdev <>
Date: Fri, 19 Jul 2019 18:32:05 -0400
Subject: [PATCH] Updated edit list form
only show "save title" button if title has been changed
---
.../list_editor/components/edit_list_form.js | 17 +++++++++--------
app/javascript/styles/gabsocial/components.scss | 4 ++--
2 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/app/javascript/gabsocial/features/list_editor/components/edit_list_form.js b/app/javascript/gabsocial/features/list_editor/components/edit_list_form.js
index c22dd52a..a429a2b7 100644
--- a/app/javascript/gabsocial/features/list_editor/components/edit_list_form.js
+++ b/app/javascript/gabsocial/features/list_editor/components/edit_list_form.js
@@ -7,7 +7,7 @@ import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
title: { id: 'lists.edit.submit', defaultMessage: 'Change title' },
- save: { id: 'lists.new.save_title', defaultMessage: 'Save' },
+ save: { id: 'lists.new.save_title', defaultMessage: 'Save Title' },
});
const mapStateToProps = state => ({
@@ -59,13 +59,14 @@ class ListForm extends React.PureComponent {
onChange={this.handleChange}
/>
-
+ { !disabled &&
+
+ }
);
}
diff --git a/app/javascript/styles/gabsocial/components.scss b/app/javascript/styles/gabsocial/components.scss
index ffcf10cf..6cb79b9e 100644
--- a/app/javascript/styles/gabsocial/components.scss
+++ b/app/javascript/styles/gabsocial/components.scss
@@ -1477,7 +1477,7 @@ a.account__display-name {
width: 100%;
margin: 0 auto;
overflow: hidden;
-
+
.column,
.drawer {
width: 100%;
@@ -4477,7 +4477,7 @@ noscript {
.edit-list-form {
&__btn {
margin-left: 6px;
- width: 80px;
+ width: 112px;
}
&__input {