Skip to content
Snippets Groups Projects
Commit bfaad6f9 authored by Taras's avatar Taras
Browse files

Change create to configure

parent 3d233a56
No related branches found
No related tags found
No related merge requests found
...@@ -51,14 +51,14 @@ class ConfigureWorkspaceFragment : Fragment(R.layout.fragment_configure_workspac ...@@ -51,14 +51,14 @@ class ConfigureWorkspaceFragment : Fragment(R.layout.fragment_configure_workspac
toolbar.title = toolbar.title =
getString(if (shouldValidate) R.string.validating_workspace else R.string.configure_workspace) getString(if (shouldValidate) R.string.validating_workspace else R.string.configure_workspace)
if (shouldValidate) startLoading(btbCreate) if (shouldValidate) startLoading(btbConfigure)
rvWorkspaceTasks.apply { rvWorkspaceTasks.apply {
adapter = tasksAdapter adapter = tasksAdapter
addItemDecoration(DividerItemDecoration(context, DividerItemDecoration.VERTICAL)) addItemDecoration(DividerItemDecoration(context, DividerItemDecoration.VERTICAL))
} }
btbCreate.setOnClickListener { btbConfigure.setOnClickListener {
startLoading(btbCreate) startLoading(btbConfigure)
viewModel.createWorkspace() viewModel.createWorkspace()
} }
} }
...@@ -77,7 +77,7 @@ class ConfigureWorkspaceFragment : Fragment(R.layout.fragment_configure_workspac ...@@ -77,7 +77,7 @@ class ConfigureWorkspaceFragment : Fragment(R.layout.fragment_configure_workspac
}, },
error = { error = {
showError(it) showError(it)
binding.btbCreate.setText(getString(R.string.retry)) binding.btbConfigure.setText(getString(R.string.retry))
}) })
viewModel.validateWorkspaceResultLiveData.observeResponse(this, viewModel.validateWorkspaceResultLiveData.observeResponse(this,
success = { configureWorkspaceListener?.onWorkspaceConfigured() }, success = { configureWorkspaceListener?.onWorkspaceConfigured() },
......
...@@ -65,13 +65,13 @@ ...@@ -65,13 +65,13 @@
app:layout_constraintStart_toStartOf="parent" /> app:layout_constraintStart_toStartOf="parent" />
<org.futo.circles.core.view.LoadingButton <org.futo.circles.core.view.LoadingButton
android:id="@+id/btbCreate" android:id="@+id/btbConfigure"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:layout_marginHorizontal="36dp" android:layout_marginHorizontal="36dp"
android:layout_marginBottom="16dp" android:layout_marginBottom="16dp"
android:text="@string/create" android:text="@string/configure"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" /> app:layout_constraintStart_toStartOf="parent" />
......
...@@ -153,6 +153,7 @@ Or, think about all of your friends across all of the places you\'ve ever lived. ...@@ -153,6 +153,7 @@ Or, think about all of your friends across all of the places you\'ve ever lived.
<br/><br/>Everyone in the group posts to the same timeline, and everyone in the group can see every post. <br/><br/>Everyone in the group posts to the same timeline, and everyone in the group can see every post.
<br/><br/>For example, you might want to create a group for your book club, or your sports team, or your scout troop. <br/><br/>For example, you might want to create a group for your book club, or your sports team, or your scout troop.
<br/><br/>If you want to share with lots of different people who <i>don\'t</i> all know each other, then you should invite those people to follow you in a <b>Circle</b> instead.]]></string> <br/><br/>If you want to share with lots of different people who <i>don\'t</i> all know each other, then you should invite those people to follow you in a <b>Circle</b> instead.]]></string>
<string name="configure">Configure</string>
<plurals name="days"> <plurals name="days">
<item quantity="one">%1$d day</item> <item quantity="one">%1$d day</item>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment